loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Update docs for nestRemoting to state that it needs to be done in boot file

Open cgole opened this issue 10 years ago • 2 comments

https://docs.strongloop.com/display/public/LB/Nested+queries

in model.js we cannot get model’s relations since they are not loaded. Do relation related operations in boot file.

cgole avatar Jun 07 '16 00:06 cgole

@crandmck, just needs a small note somewhere. You can actually do it in the model.js but you have to use events to make sure the model is loaded. Would be best to recommend that nestRemoting be done in a boot script.

richardpringle avatar Jun 07 '16 01:06 richardpringle

OK I added a short note to https://docs.strongloop.com/display/APIC/Nested+queries. I'm going to close, but if you think I need to do something more @richardpringle, please reopen.

crandmck avatar Jun 29 '16 22:06 crandmck