loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Documentation Error : Querying related models - Copy&Paste Error

Open serkanserttop opened this issue 12 years ago • 2 comments

http://docs.strongloop.com/display/public/LB/Querying+related+models Under the "Inclusion" section, it writes "Or, equivalently:" but both scripts are exactly the same.

serkanserttop avatar Nov 21 '14 01:11 serkanserttop

They are different:

include: 'posts' // For a single relation
include: ['posts'] // For one or more relations in an array

raymondfeng avatar Nov 21 '14 05:11 raymondfeng

Oops, my bad. I must have gone blind from reading too much documentation for a while. Thanks!

serkanserttop avatar Nov 28 '14 18:11 serkanserttop