Example #1
0
        public async Task Collection()
        {
            await Arango.CreateCollectionAsync("test", "test", ArangoCollectionType.Document);

            await Arango.CreateDocumentAsync("test", "test", new
            {
                Key  = "abc",
                Name = "a"
            });

            var res = await Arango.UpdateDocumentAsync("test", "test", new
            {
                Key  = "abc",
                Name = "c"
            }, returnNew : true, returnOld : true);
        }
Example #2
0
        public async Task Collection()
        {
            await Arango.CreateCollectionAsync("test", new ArangoCollection
            {
                Name       = "test",
                Type       = ArangoCollectionType.Document,
                KeyOptions = new ArangoKeyOptions
                {
                    Type          = ArangoKeyType.Padded,
                    AllowUserKeys = false
                }
            });

            await Arango.CreateDocumentAsync("test", "test", new
            {
                Name = "test"
            });
        }