Socket
Book a DemoInstallSign in
Socket

@acastellon/arango

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acastellon/arango

arangodb persistence interface

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

arango

A Simplified interface to arango database using the arangojs library At the moment is accessing only to JSON Documents, not graph.

configuration

saved for example as 'config.arango.js'

module.exports = {

  CERTIFICATION_PATH : '/opt/brdb/Certificate' 
        /* note: the certification requires a 'ca.pem' file */
        /* @TODO: externalize it, and make it more flexible */
        
  ,ARANGO_URL: 'http://127.0.0.1:8529'
  ,ARANGO_USER: 'root'
  ,ARANGO_PASSWORD: 'root'
  ,ARANGO_DATABASE: 'test'   
  ,TRACES : false
}

usage

const config = require('./config.arango.js');
const db     = require('@acastellon/arango')(config);

methods

find object(s) that contains all the parameters described in a collection

find(parameters, collection)    

find object(s) that contains ANY parameter described in a collection

findAQL(parameters, collection)

find object(s) using directly the AQL language from ArangoDB

findAQLSentence(query)

save a document object into a collection

save(document, collection)

delete a document object from a collection

remove(document, collection)

Keywords

arangojs

FAQs

Package last updated on 31 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts