loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Can the API handle depths > 2?

Open bdharrington7 opened this issue 9 years ago • 2 comments

When you create a relationship between models, you can get an API generated that allows you to get models 2 levels deep:

GET /api/Wigets/1/modules/234

Can you return model objects to go even further?

GET /api/Wigets/1/modules/234/instances/567/pieces etc...

bdharrington7 avatar May 16 '17 01:05 bdharrington7

@bdharrington7

Check this if it helps you - https://loopback.io/doc/en/lb3/Nested-queries.html

padelagani avatar May 16 '17 05:05 padelagani

Thanks, that helps. Unfortunately it seems the level is capped at 3.

bdharrington7 avatar May 18 '17 21:05 bdharrington7