A handle to a query against your client-side document collections.
More...
|
Observe< TRecordType > | Observe (Action< string, TRecordType > added=null, Action< string, TRecordType, IDictionary, string[]> changed=null, Action< string > removed=null) |
| Observes changes for the query specified by the selector. Behaves like Meteor's observe. An observe invokes callbacks when the result of the query changes. The callbacks receive the entire contents of the document that was affected, as well as its old contents, if applicable. Before observe returns, added will be called zero or more times to deliver the initial results of the query. This method returns an Observe instance, which is an object with a stop method. Call stop with no arguments to stop calling the callback functions and tear down the query. The query will run forever until you call this. More...
|
|
IEnumerable< TRecordType > | Fetch () |
| Returns the array of documents matched by this cursor. More...
|
|
|
Collection< TRecordType > | collection [get, protected set] |
| The collection references in this cursor More...
|
|
Func< TRecordType, bool > | selector [get, protected set] |
| The selector used for this cursor More...
|
|
IEnumerable< string > | ids [get, protected set] |
| If specified, the array of document IDs that this cursor will match. More...
|
|
A handle to a query against your client-side document collections.
Returns the array of documents matched by this cursor.
Observe<TRecordType> Meteor.Cursor< TRecordType >.Observe |
( |
Action< string, TRecordType > |
added = null , |
|
|
Action< string, TRecordType, IDictionary, string[]> |
changed = null , |
|
|
Action< string > |
removed = null |
|
) |
| |
|
inline |
Observes changes for the query specified by the selector. Behaves like Meteor's observe. An observe invokes callbacks when the result of the query changes. The callbacks receive the entire contents of the document that was affected, as well as its old contents, if applicable. Before observe returns, added will be called zero or more times to deliver the initial results of the query. This method returns an Observe instance, which is an object with a stop method. Call stop with no arguments to stop calling the callback functions and tear down the query. The query will run forever until you call this.
- Parameters
-
added | A new document document entered the result set. |
changed | A callback for changes to documents. The first argument is the ID, the second the entire record, the third a dictionary of fields that were changed as keys and the new values as values, and an array of strings specifying any deleted fields. The second argument, the entire document, has the changes already applied to it. |
removed | A document with the given ID was removed. The callback is called after the document is removed from the collection. |
The collection references in this cursor
The collection.
If specified, the array of document IDs that this cursor will match.
The identifiers.
The selector used for this cursor
The selector.
The documentation for this class was generated from the following file: