Example #1
0
        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
            });
        }
Example #2
0
        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;
            }
        }