Exemple #1
0
        public async Task gets_data_using_in_query()
        {
            var sut = CrossFirebaseFirestore.Current;

            var pokemons = await sut
                           .GetCollection("pokemons")
                           .WhereFieldIn(FieldPath.DocumentId(), new object[] { "1", "2", "3" })
                           .GetDocumentsAsync <Pokemon>();

            Assert.Equal(new[] { "1", "2", "3" }, pokemons.Documents.Select(x => x.Data.Id));
        }