Comments on: ArangoDB for Node.js Integration | ArangoDB 2012 https://arangodb.com/2012/07/arangodb-for-nodejs/ The database for graph and beyond Wed, 03 Apr 2024 04:33:31 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: Loremsqlsum https://arangodb.com/2012/07/arangodb-for-nodejs/#comment-1078 Wed, 29 May 2013 19:01:00 +0000 http://www.arangodb.com/?p=941#comment-1078 In reply to Shekar Tippur.

The blog is not a suitable place for Support. Please come to Google Groups.

]]>
By: Shekar Tippur https://arangodb.com/2012/07/arangodb-for-nodejs/#comment-1077 Wed, 29 May 2013 15:47:00 +0000 http://www.arangodb.com/?p=941#comment-1077 In reply to luebbert42.

Disqus –

I think I got over some hiccups :).

I believe we need var QUnit = require(‘qunit’);

I now have new set of error:

/usr/local/bin/node collection.js
/Users/shekart/WebstormProjects/byeh_new/node_modules/arango.client/test/api/collection.js:19 asyncTest(‘create’,2,function(){
^
ReferenceError: asyncTest is not defined
at Object. (/Users/shekart/WebstormProjects/byeh_new/node_modules/arango.client/test/api/collection.js:19:1) at runFactory (/Users/shekart/WebstormProjects/byeh_new/node_modules/arango.client/node_modules/amdefine/amdefine.js:181:30) at define (/Users/shekart/WebstormProjects/byeh_new/node_modules/arango.client/node_modules/amdefine/amdefine.js:275:13) at Object. (/Users/shekart/WebstormProjects/byeh_new/node_modules/arango.client/test/api/collection.js:10:1) at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)

Process finished with exit code 8

I tried to precede it with function asyncTest(..

I then get a different error ..

/Users/shekart/WebstormProjects/byeh_new/node_modules/arango.client/test/api/collection.js:19 function asyncTest(‘create’,2,function(){
^^^^^^^^
SyntaxError: Unexpected string
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3

Any idea on whats going on?

– Shekar

]]>
By: luebbert42 https://arangodb.com/2012/07/arangodb-for-nodejs/#comment-1076 Wed, 29 May 2013 08:39:00 +0000 http://www.arangodb.com/?p=941#comment-1076 In reply to Shekar Tippur.

I wrote something in the Google Group (this is a bit more comfortable than the comment’s section :-))

]]>
By: Shekar Tippur https://arangodb.com/2012/07/arangodb-for-nodejs/#comment-1075 Wed, 29 May 2013 06:45:00 +0000 http://www.arangodb.com/?p=941#comment-1075 In reply to luebbert42.

Here is what I see on node_modules folder ..

$ pwd

/Users/shekart/WebstormProjects/byeh_new/node_modules

$ ls

amdefine arango.client express jade qunit

I have installed both qunit and amdefine.

I still see the same error.

– Shekar

]]>
By: Shekar Tippur https://arangodb.com/2012/07/arangodb-for-nodejs/#comment-1074 Tue, 28 May 2013 15:48:00 +0000 http://www.arangodb.com/?p=941#comment-1074 Here is what I see on node_modules folder ..

$ pwd

/Users/shekart/WebstormProjects/byeh_new/node_modules

$ ls

amdefine arango.client express jade qunit

]]>
By: Shekar Tippur https://arangodb.com/2012/07/arangodb-for-nodejs/#comment-1073 Tue, 28 May 2013 15:45:00 +0000 http://www.arangodb.com/?p=941#comment-1073 I have installed both qunit and amdefine.

I still see the same error.

– Shekar

]]>
By: luebbert42 https://arangodb.com/2012/07/arangodb-for-nodejs/#comment-1072 Tue, 28 May 2013 07:53:00 +0000 http://www.arangodb.com/?p=941#comment-1072 In reply to Shekar Tippur.

to run the tests on a fresh node installation in the current version of arango.client I had to install two additional modules, qunit and amdefine via

sudo npm install amdefine
sudo npm install qunit

]]>
By: Shekar Tippur https://arangodb.com/2012/07/arangodb-for-nodejs/#comment-1071 Tue, 28 May 2013 06:58:00 +0000 http://www.arangodb.com/?p=941#comment-1071 In reply to luebbert42.

I have installed the latest node module.

Here is the version info

“name”: “arango.client”,

“version”: “0.6.2”,

I looked at the test folder ..
https://github.com/kaerus-component/arango/blob/master/test/arango.js

I see the below definition…

var libs = [

‘../lib/arango’,

‘./lib/qunit-1.10.js’

];

I dont see a relative folder ../lib/arango.

And when I try to run this .. I get

$ node arango.js

/Users/shekart/WebstormProjects/byeh_new/node_modules/arango.client/test/arango.js:11

module = QUnit.module;

^

ReferenceError: QUnit is not defined

I am sorry if I am posting trivial questions but I really appreciate any help.

– Shekar

]]>
By: luebbert42 https://arangodb.com/2012/07/arangodb-for-nodejs/#comment-1070 Mon, 27 May 2013 11:07:00 +0000 http://www.arangodb.com/?p=941#comment-1070 In reply to Shekar Tippur.

The api for “on demand collections” has changed, I have updated the example. Hint: Anders includes many examples in the test directory of the module 🙂

]]>
By: Shekar Tippur https://arangodb.com/2012/07/arangodb-for-nodejs/#comment-1069 Sun, 26 May 2013 05:48:00 +0000 http://www.arangodb.com/?p=941#comment-1069 I am trying to include this on a intellij project. I get this error.

db.document.create_(“newcollection”,{a:”test”},function(err,ret){

^

TypeError: Object # has no method ‘create_’

at Object. (/Users/shekart/WebstormProjects/byeh_new/arango_conn.js:26:13)

at Module._compile (module.js:456:26)

at Object.Module._extensions..js (module.js:474:10)

at Module.load (module.js:356:32)

at Function.Module._load (module.js:312:12)

at Function.Module.runMain (module.js:497:10)

at startup (node.js:119:16)

at node.js:901:3

Process finished with exit code 8

If I change the _create to create, I get the below message
error(404): collection /_api/collection/newcollection not found

I am kinda new to all this. Really appreciate any pointers.

– Shekar

]]>