This simply returns all mercury and engage type readers that are stored in the database.
Example in C#
var currentInstance = await client.GetCurrentInstanceAsync();
var match = new BsonDocument("$match",
new BsonDocument("$or",
new BsonArray
{
new BsonDocument("_t", "MercuryReader"),
new BsonDocument("_t", "EngageReader")
}));
var bsonDocument = await client.AggregateAsync(currentInstance, "KeepObjects", new[] {match}, 30);
Example in CURL
curl -X POST \
'https://api.us.acresecurity.cloud/api/f/INSTANCE_KEY_HERE/aggregate/KeepObjects?queryTimeout=30&jsonStrict=False%20' \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-H 'Content-Type: application/json' \
-d '["
{
\"$match\" :
{
\"$or\" :
[
{ \"_t\" : \"MercuryReader\" },
{ \"_t\" : \"EngageReader\" }
]
}
}"
]'
Example Of Aggregate Used in JSON
[
{
"$match" :
{
"$or" :
[
{ "_t" : "MercuryReader" },
{ "_t" : "EngageReader" }
]
}
}
]