コード例 #1
0
ファイル: UpdateTest.cs プロジェクト: robsiera/ArangoDB
        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);
        }
コード例 #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"
            });
        }