Closed susyabashti closed 1 year ago
Note: i just pasted the object ids, but i actually populate them with the data, this doesn't happen when i don't populate them
It is the internal behavior of MongoDB to return records in its own order.
This lib uses find({_id: { $in: [x, y, z] }})
under the hood here https://github.com/graphql-compose/graphql-compose-mongoose/blob/master/src/resolvers/findByIds.ts#L84
I can't seem to get this to work, i use findbyIds to populate an array of object ids, but it keeps reordering them by the id. someone know what i need to do to fix this?
example:
returns :
i tried the sort: false, but it didn't help.