Reference/Operators/Element QueryMongoDB Query Language (MQL) Element Query OperatorsElement query operators are used to query document elements based on their existence and type.$existsThe $exists operator retrieves documents that contain the specified field in their document structure.$typeThe $type operator retrieves documents if the chosen field is of the specified type.
Reference/Operators/Element QueryMongoDB Query Language (MQL) Element Query OperatorsElement query operators are used to query document elements based on their existence and type.$existsThe $exists operator retrieves documents that contain the specified field in their document structure.$typeThe $type operator retrieves documents if the chosen field is of the specified type.