Esempio n. 1
0
        public async Task QueryIntegerContains()
        {
            await Arango.CreateDatabaseAsync("test");

            await Arango.CreateCollectionAsync("test", "test", ArangoCollectionType.Document);

            await Arango.CreateDocumentsAsync("test", "test", new List <Entity>
            {
                new Entity {
                    Value = 1
                },
                new Entity {
                    Value = 2
                },
                new Entity {
                    Value = 3
                }
            });

            var select = new List <int> {
                1, 2
            };

            var res = await Arango.QueryAsync <Entity>("test", $"FOR e IN test FILTER e.Value IN {select} RETURN e");

            Assert.Equal(2, res.Count);
        }