gabriel-letarte / sails-arangodb Goto Github PK
View Code? Open in Web Editor NEWWaterline ORM adapter for ArangoDB.
License: MIT License
Waterline ORM adapter for ArangoDB.
License: MIT License
npm install
installs old version. Could you update it? :)
hello
you should mention in read-me to install "lodash" package using this command
npm install lodash
if not installed the following error will appear
/home/mahdi/apps/app1/node_modules/sails-arangodb/lib/processor.js:8
this.schema = _.cloneDeep(schema);
^
TypeError: _.cloneDeep is not a function
I created a recipe for the ArangoDB cookbook on how to use Sails.js with ArangoDB, you can find it here. This will however only work, if you publish the package to NPM
ArangoDB AQL query builder has made some changes that cause sails-arangodb to fail when connecting
error: Sending 500 ("Server Error") response:
TypeError: undefined is not a function
at module.exports.optionsToQuery (/.../node_modules/sails-arangodb/lib/connection.js:187:18)
at module.exports.DbHelper.find (/.../node_modules/sails-arangodb/lib/connection.js:226:14)
at Object.module.exports.adapter.find (/.../node_modules/sails-arangodb/lib/adapter.js:197:38)
at module.exports.find (/.../node_modules/sails/node_modules/waterline/lib/waterline/adapter/dql.js:120:13)
at _runOperation (/.../node_modules/sails/node_modules/waterline/lib/waterline/query/finders/operations.js:408:29)
at run (/.../node_modules/sails/node_modules/waterline/lib/waterline/query/finders/operations.js:69:8)
at bound.module.exports.find (/.../node_modules/sails/node_modules/waterline/lib/waterline/query/finders/basic.js:264:16)
at bound [as find] (/.../node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
at Deferred.exec (/.../node_modules/sails/node_modules/waterline/lib/waterline/query/deferred.js:501:16)
at findRecords (/.../node_modules/sails/lib/hooks/blueprints/actions/find.js:47:9)
at routeTargetFnWrapper (/.../node_modules/sails/lib/router/bind.js:179:5)
at callbacks (/.../node_modules/sails/node_modules/express/lib/router/index.js:164:37)
at param (/.../node_modules/sails/node_modules/express/lib/router/index.js:138:11)
at pass (/.../node_modules/sails/node_modules/express/lib/router/index.js:145:5)
at nextRoute (/.../node_modules/sails/node_modules/express/lib/router/index.js:100:7)
at callbacks (/.../node_modules/sails/node_modules/express/lib/router/index.js:167:11) [TypeError: undefined is not a function]
Commit that breaks this: arangodb/aqbjs@f3d8a6b
Hi, would it be difficult to implement select functionality?
Does this run/pass against the waterline adapter tests?
Hi, I'm following this tutorial for ArangoDB 3.1, but when I try to add data to the collection through this URI:
localhost:1337/todos/create?name=john
I get this error: Invalid usage of publishCreate() :: Values must have an 'id', instead got ::
I'm trying to test out Sails with Arangodb using your connector.
I've got a basic sails installation, nothing added except a call to sails generate api.
When I run sails lift
, I get the following error:
An error has occured when trying to connect to ArangoDB:
/Volumes/WORK/test-sails/node_modules/sails-arangodb/lib/connection.js:410
throw err;
^
TypeError: server.database is not a function
at module.exports.ensureDB (/Volumes/WORK/test-sails/node_modules/sails-arangodb/lib/connection.js:26:9)
at module.exports.getDb (/Volumes/WORK/test-sails/node_modules/sails-arangodb/lib/connection.js:44:16)
at module.exports.connect (/Volumes/WORK/test-sails/node_modules/sails-arangodb/lib/connection.js:397:7)
at Object.module.exports.create (/Volumes/WORK/test-sails/node_modules/sails-arangodb/lib/connection.js:418:14)
at module.exports.getConn (/Volumes/WORK/test-sails/node_modules/sails-arangodb/lib/adapter.js:51:19)
at Object.module.exports.adapter.registerConnection (/Volumes/WORK/test-sails/node_modules/sails-arangodb/lib/adapter.js:114:7)
at /usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline.js:203:29
at /usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:162:20
at /usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:230:13
at _arrayEach (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:81:9)
at _each (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:72:13)
at Object.async.forEachOf.async.eachOf (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:229:9)
at Object.async.forEach.async.each (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:206:22)
at Array.async.auto.registerConnections (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline.js:176:13)
at /usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:590:38
at _arrayEach (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:81:9)
I've added a console.log
to ensureDB to dump the server
variable and I guess this:
Database {
_connection:
Connection {
config:
{ url: 'http://localhost:8529',
databaseName: '_system',
arangoVersion: 20300,
agentOptions: [Object],
headers: [Object] },
_request: [Function: request],
promisify: [Function] },
_api:
Route {
_connection:
Connection {
config: [Object],
_request: [Function: request],
promisify: [Function] },
_path: '_api',
_headers: undefined },
name: '_system' }
Am I missing something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.