| 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
)
Public Function GetByQuery (
query As Object,
collection As String
) As List(Of Object)
public:
List<Object^>^ GetByQuery(
Object^ query,
String^ collection
)
member GetByQuery :
query : Object *
collection : string -> List<Object>
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:
ListObjectA 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