ccorcos / meteor-neo4j

Neo4j API for Meteor
19 stars 5 forks source link

Neo4jDB.stringify ReferenceError: isArray is not defined #7

Open meduza opened 9 years ago

meduza commented 9 years ago

I have the following error with Neo4jDB.stringify function:

> var user = {name: "John", age: 15}
> user.name
'John'
> Neo4jDB.stringify(user)
ReferenceError: isArray is not defined
    at Function.stringify (packages/ccorcos:neo4j/src/driver.coffee:19:6)
    at repl:1:10
    at /Users/meduza/Sites/blipper/.meteor/local/build/programs/server/shell-server.js:243:23
> 
meduza commented 9 years ago

When i manually install driver in {meteorRoot}/packages i have not this error, but have double Neo4 initialisations (possibly) on meteor start:

=> Started proxy.                             
=> Started MongoDB.                           
=> Babel active on file extensions: es6.js, es6, jsx
=> Started your app.                          

=> App running at: http://localhost:3000/
I20150906-22:04:03.587(3)? Connecting to Neo4j on http://localhost:7474
I20150906-22:04:03.588(3)? Meteor is successfully connected to Neo4j on http://localhost:7474
ccorcos commented 9 years ago

Hey dude. sorry about that -- I can't tell you're the first person to actually use this package! I've been developing on this package within another project and haven't been pushing new versions because I've been changing it so much. But I published the new version 0.1.0 and it should work now.

benwalks commented 9 years ago

Hey ccorcos, just for what it's worth, I'm just about to use this package too for a social network site. Thanks for creating it man!

ccorcos commented 9 years ago

oh awesome -- I just built something similar. ;)

I have a new version of any-db coming out along with another package for caching, etc.

are you using blaze or react?

benwalks commented 9 years ago

Oh brilliant mate, I might hold off a little for the new any-db package then. I'm using blaze at the moment but am looking into react. Which are you using?

Also, let me know if you want some help with the package. I'd love to maybe write a guide or simple tutorial to help new-comers. Your brother's guide helped me, so I'd like to help too.

ccorcos commented 9 years ago

React is the shit. I'm done with markup languages. Functional programmign all the way :+1:

I'd love some help, but theres kind of stuff that I need to organize and explain. This weekend I plan on writing a pretty epic blog post covering everything I learned and build while working on this project.

If you send me a link to your facebook profile (so I can add you as a beta tester), I can show you a demo of my app.

benwalks commented 9 years ago

Thanks Chet. I've sent you an email.

ccorcos commented 9 years ago

awesome

ryanbuiltthat commented 8 years ago

I hope you all don't mind me hijacking this thread but the mention of writing a tutorial caught my eye. I'm just getting into Neo4j and still fairly new at Meteor but not webdev as a whole. One thing I can't seem to get straight is whether there is a relationship between Mongo and Neo4j?. The best way to describe this is to just tell you what I'm trying to do.

A very simple portal for university students to register for internships. The idea was to also allow businesses to register so that the small business development center staff would get a little help in maintaining accurate records of local businesses. On that same notion of lightening the load of staff, I wanted to just have a simple recommendations widget for the student upon registering. For example a student is studying communications, when they access the portal they'd see a list of businesses related to that field (marketing, PR, journalism, etc). I wanted to start super simple like that using Neo4j and maybe expand the metrics to provide a coherent matching service. Where I'm baffled is whether I use Mongo for the normal stuff like user profiles, general info ,etc and then selectively add info to Neo for the recommendations??? So all the fields of study and their relations are in Neo and only a small amount of user data, enough to create or find a relationship. Or do I not use Mongo at all and throw everything in Neo? I feel like I'm slamming my head against a cardboard wall as it seems like it should be so simple but for someone just getting into graph databases when and where to use them is a hard first question. Again I'm sorry to hijack the thread but I'm at a loss here