Click or drag to resize
Galactic API

MongoDBUtilityGetByQuery Method (Object, String)

Gets documents from the database that correspond to the supplied query.

Namespace:  Galactic.NoSql.MongoDB
Assembly:  Galactic.NoSql.MongoDB (in Galactic.NoSql.MongoDB.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public List<Object> GetByQuery(
	Object query,
	string collection
)

Parameters

query
Type: SystemObject
The query to use when finding documents. (This implementation expects IMongoQuery objects.)
collection
Type: SystemString
The name of the collection to get the document from.

Return Value

Type: ListObject
A list of documents that correspond to the query supplied, or an empty list if there was an error, or the query did not produce any results.
See Also