contentful-management.js icon indicating copy to clipboard operation
contentful-management.js copied to clipboard

`include` option is ignored in `getEntries`

Open ekasprzyk opened this issue 3 years ago • 3 comments

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?

ekasprzyk avatar Nov 02 '21 17:11 ekasprzyk

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.

ekasprzyk avatar Nov 04 '21 12:11 ekasprzyk

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.

Spring3 avatar Nov 24 '21 11:11 Spring3

If you could add a small example of your call, that would also help pinpoint the exact place that needs attention. Thanks!

Spring3 avatar Nov 24 '21 11:11 Spring3

Closing for inactivity

Spring3 avatar Oct 12 '22 19:10 Spring3