_MongoCollection.Query (gb.mongodb)

Function Query ( [ Filter As Collection, Options As Collection ] ) As MongoResult

Return the documents of the collection matching a specific query.

  • Filter : The query that will match the returned documents.

  • Options : Additional command options. See the MongoDB documentation for more details.

This method returns the list of matching documents as a MongoResult object.

See the MongoDB documentation for the syntax of the query filter.