Skip to content

Commit

Permalink
tryhardim...
Browse files Browse the repository at this point in the history
  • Loading branch information
Popug-s-catcher committed Sep 23, 2024
1 parent f87f4ec commit 7ba26d2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions hello_world/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.IO.Pipes;
using System.Reflection.Metadata;
using Core.Arango;
using Core.Arango.Protocol;


// from connection string
var arango = new ArangoContext("Server=https://2b71327f1e85.arangodb.cloud:8529;Realm=opa;User=root;Password=njeYmNHT491eDWhbf6oO;");

await arango.Database.CreateAsync("database");

await arango.Collection.CreateAsync("database", "collection", ArangoCollectionType.Document);


var key = "1";
await arango.Document.CreateAsync("database", "collection", new
{
Key = key,
SomeValue = "Hello World!"
});

var list1 = await arango.Document.GetManyAsync<object>("database", "collection", new List<string> {
"1"
});

Console.WriteLine($"{list1[0]}");

0 comments on commit 7ba26d2

Please sign in to comment.