Support Topics Documentation Slack YouTube Blog

Relation depth with relation paging

(Phil) #1

I’m loading relations with paging. How do I include a relation of that relation?

For example, I have an object that references many review objects. Each review object references a user object. I can successfully load the review objects but how do I include the user object for each review?

I am using NodeJs.

(Maksym Khobotin) #2

Hello @Phil1
If you want to load the relations you need to check the “autoload” option. It will automatically load the related objects. For more information visit the documentation.
If you work with nested relations you need to specify the relation depth. You can find information about this here
Please note that max relation depth is 10.

Best regards,