Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
mongo find documents that have a certain key
tday03
Programming language:
TypeScript
2021-04-13 08:05:55
0
Q:
mongo find documents that have a certain key
Nevis Rik
Code:
TypeScript
2021-09-17 05:30:50
db.coll.find({"mykey":{'$exists': 1}})
0
Tags
key
find
Related
mongo change all documents on field
django model get all documents with a given foreign key
mongodb find documents where two fields are equal
New to Communities?
Join the community