Giter VIP home page Giter VIP logo

sails-arangodb's People

Contributors

enlightenedcode avatar gabriel-letarte avatar gbevan avatar ggendel avatar luke3butler avatar moonglum avatar rosmo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sails-arangodb's Issues

depandancy on lodash package

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

Publish to NPM

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 ๐Ÿ˜„ Can you maybe do that as a 0.0.1? Or as a pre-release? I know that the test suite is not passing yet, but I think it's a good way to let people try it out and give you feedback!

Not compatible with aqbjs versions > 1.11.0

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

support select

Hi, would it be difficult to implement select functionality?

Values must have an id

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 ::

server.database is not a function

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.