Graphql query returns 21 objects in where clause but fails on 22nd. Must be default 20 somewhere with some index issue. It should return all the where id parameters

Error while filtering on more than 21 items in the where id clause. Always giving Error "“message”: “Cast to ObjectId failed for value …” for 22nd items. Even checked 22nd item is perfectly fine when retrieved independently or i break my 50 records input into 20 20 10

where: {
id: [


) {