Use the MongoDB's built-in ObjectId() method

Hi, is there a way to use the MongoDB build in ObjectId() method in a query? If I try to use the ObjectId() method, it says that the JSON is not valid.

I have a collection of customer documents. Each customer has a list of projects. When creating a project for a customer I want to create an unique id for each project, so that I can target it later to update that specific project.

Hi @Dennis_De_Reyer I don't believe this is supported :disappointed: Does it work for your use case to omit the id, as Kabirdas suggests here?