public void NewFindQuery(CollectionReference item, int?skip = null, int?limit = null) { var queryReference = QueryReference.Find(item, skip, limit); _applicationInteraction.OpenQuery(new RunQueryContext(item.Database, queryReference) { RunOnStart = true }); }
public async Task NewQuery(object item) { switch (item) { case DatabaseReference databaseReference: await _applicationInteraction.OpenQuery(new RunQueryContext(databaseReference)); break; case CollectionReference collectionReference: await _applicationInteraction.OpenQuery(new RunQueryContext(collectionReference.Database, QueryReference.Find(collectionReference))); break; } }