digitalsadhu / loopback-component-jsonapi

JSONAPI support for loopback.
MIT License
101 stars 32 forks source link

fix(utils): add condition to isLoopbackInclude #297

Open chris-bloomfield opened 5 years ago

chris-bloomfield commented 5 years ago

Added an extra condition to isLoopbackInclude() to ensure it only returns true if the user passes in an include filter. This should fix an issue where requests along the lines of GET /posts?filter[where][id]=123&include=comments are ignoring the include parameter when there is also a filter param.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 94.554% when pulling e8cfe4d5e1ee59ac2a35f21bffa3bda7a0366eee on chris-bloomfield:master into 40f928273fe50acfebb11cbaf2e0469f0d56efea on digitalsadhu:master.