ArangoDB arangoDB = new ArangoDB.Builder().build(); ArangoCollection collection = arangoDB.db("mydb").collection("mycollection"); DocumentCreateEntity<MyDocument> result = collection.insertDocument(new MyDocument("key", "value")); python from arango import ArangoClient client = ArangoClient(host='localhost', username='root', password='password') db = client.db('mydb') aql = 'FOR doc IN mycollection RETURN doc' cursor = db.aql.execute(aql) for doc in cursor: print(doc) ArangoDB arangoDB = new ArangoDB.Builder().build(); ArangoCollection collection = arangoDB.db("mydb").collection("mycollection"); DocumentUpdateEntity<MyDocument> result = collection.updateDocument("key", new MyDocument("key", "new value"));


上一篇:
下一篇:
切换中文