Finds Events on the specified Stream which match the specified options.
Octave.Event.multifind([{streamId:<>, params: {}}, ... ])
Allows simultaneous access to Events from a number of Streams.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
streamId | String | Yes | The unique ID of the Stream. |
params | String | Yes |
Returns
An array of JSON representations of the matching Events.
Example
Request
//query from a number of streams.
var events = Octave.Event.multifind([{streamId:"s123456123456123456123456","params":{"sort":"creationDate","limit":1}},
streamId:"s234567234567234567234567","params":{"sort":"creationDate","order":"desc", "limit":1}},
path:/mycompany/mystream", "params":{}]);