C
C
Coder3212017-07-24 17:42:58
MongoDB
Coder321, 2017-07-24 17:42:58

Is it possible to search by incomplete id in mongo?

There is an incomplete part of the ID, is it possible to somehow search for all matches on an incomplete ID?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Larisa Moroz, 2017-07-24
@larisamoroz

Here they gave the answer:
https://stackoverflow.com/questions/25677655/find-...
In a simple way:
the string value of ObjectId is taken here, then we are already looking for it using MongoRegex

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question