This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Database, DocumentCollection } from 'arangojs' | |
const db = new Database(process.env.ARANGODB_URL); | |
db.useDatabase('name'); | |
/** | |
* Upserts (merges) the content of the documents with the given documents and | |
* optionally returns an array containing the documents’ metadata. | |
* | |
* @param {string|ArangoDB.Collection} collection - collection to use | |
* @param {Document[]} documents - list of documents to upsert |
NewerOlder