contentful-management.js
contentful-management.js copied to clipboard
`include` option is ignored in `getEntries`
I was just debugging a call fetching a range of entries based on IDs, fetched using a query e.g:
'{"sys.id[IN]": "2GgOhz8Yx7EeRaYJhKLoRH,5fWlp2UCiR9zTQDNeH0sff", "include": 0, "resolveLinks": false, "limit": 1000}'
and the result returns >30,000 results (1000 at a time) regardless of what include
level I used.
I'm pretty sure that's not supposed to happen. Any ideas?
Edited issue, as the real issue turned out to be that the [IN]
didn't work and had to be [in]
.
Suggest having a better failure message. This isn't the first time I've done this, nor am I the first member on my team, and it's annoying each and every time it happens. Improving the documentation might help as finding all the documentation after a few months becomes hard as I've forgotten where all the bits and pieces are buried.
The include
doesn't work, and the docs say so, but the typing allows it to exists, which is really, really confusing, so I suggest that get fixed too, because I always look through the typings to see what options I should have and the typings are not correct.
Thanks for reporting it @ekasprzyk. Unfortunately there's not much free time we have to take care of it quickly, but I'll try to investigate and notify the team about it as soon as I am done with what has been planned so far.
If you could add a small example of your call, that would also help pinpoint the exact place that needs attention. Thanks!
Closing for inactivity