Hello,
I have a function which works fine when running via AppServices page.
But when accessing from my iOS app it failed. I got : {“message”:“ObjectId in must be a single string of 12 bytes or a string of 24 hex characters”,“name”:“Error”}
It fails here:
const team = await teamsCollection.findOne({"_id": BSON.ObjectId(teamId)});
I log teamId which is “6126dca2a3973c43f39e0174”.
Do you have an idea?