loopback-component-jsonapi icon indicating copy to clipboard operation
loopback-component-jsonapi copied to clipboard

fix(utils): add condition to isLoopbackInclude

Open chris-bloomfield opened this issue 7 years ago • 1 comments

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.

chris-bloomfield avatar Nov 26 '18 14:11 chris-bloomfield

Coverage Status

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

coveralls avatar Nov 26 '18 14:11 coveralls