Are you able to Query by UUID?

For whatever reason Im not able to query by UUID. Whenever I do a find db.coll.find({"_id": UUID(“48f26c73-55c5-44e0-9156-2f688248e407”)}) and I copy and paste the ID, so I know its valid, the document never returns

Hi @Chase_Russell1,

Can you please provide an exemple of a document stored in MongoDB that you are trying to query? Maybe run a findOne() or extract a document from Compass so we have an idea of what you really have in your document.


1 Like