Initializes the client and sets the connection Uri. EventName - Currently not used. ConnectionString - Connection Uri. Example: mongo.Initialize("", "mongodb://127.0.0.1:27017")
IsInitializedAsBoolean
StringToObjectId (IdAsString) AsObject
Utility method that converts a 24 byte hex string to an object id. Can be used to find documents based on the id.
TicksToDate (TicksAsLong) AsObject
Utility method that converts ticks to a native Date object.
Finds matching documents in the collection. Filter - A Map with the filter. Projection - List with the field names that should be returned. Pass Null to return all fields. Sort - The sort map. Pass Null if not needed.
Replaces the first matching document. Filter - The filter map. Document - New document. Upsert - If true then the document will be inserted if there is no match.