veliovgroup / ostrio-Neo4jreactivity

Meteor.js Neo4j database reactivity layer
https://atmospherejs.com/ostrio/neo4jreactivity
BSD 3-Clause "New" or "Revised" License
51 stars 5 forks source link

neo4j database connect successfully but the callback isn't work #71

Closed mis101bird closed 7 years ago

mis101bird commented 7 years ago

Hi, I connect the neo4j database as following code. The code is on server side. 2016-11-02 5 49 25 Although the database connect successfully, the callback didn't have any response. 2016-11-02 5 50 34 Does any step I miss? Thank you.

dr-dimitru commented 7 years ago

Hi @mis101bird

  1. Currently I recommend to use more stable (but server only) neo4jDriver (based on neo4j-fiber)

Okay, back to your question - As this code asynchronous connection with DB established after query. That's why you have connection error first, and then message about successful connection. You may wrap query into Meteor.setTimeout. Unfortunately there is no connection callback

mis101bird commented 7 years ago

Thank you. It works! And thanks for the recommendation.