Skip to content

JS neo4j-driver - version 1.7.3 does not execute queries with parameters against database with Neo4j version 3.5.2 #445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cameliaben opened this issue Mar 7, 2019 · 2 comments

Comments

@cameliaben
Copy link

cameliaben commented Mar 7, 2019

Hello,

I have noticed that executing queries from a NodeJS application, using neo4j-driver version 1.7.3, is not working against Neo4j database with version 3.5.2, for parameterized queries, like below:
`
// CASE 1 - promise based approach :
session.run( query, param ).then( ( result ) => {
console.log( result );
} )
.catch( err => console.log( err ) );

//-----------------------------------------------------------------------
//CASE 2 - streaming-based approach:
session.run( query, param )
.subscribe ( {
onNext ( record ) {
console.log( record );
},
onCompleted ( result ) {
console.log( result );
session.close();
},
onError ( error ) {
console.log( error );
session.close();
},
} );`

Both approaches log only query statistics, no results retrieved, although the same query executed on GrapheneDB client produces results.
Queries that do not have parameters execute as expected on Neo4j DB , version 3.5.2.

Both above approaches execute as expected against Neo4j database version 3.3.9, hosted on Graphene DB.

Is there any known compatibility issue between neo4j-driver, v1.73 and Neo4j Database, 3.5.2 ?

@zhenlineo
Copy link
Contributor

Hi @cameliaben
In our tests, we have no problem to run parameterised queries against the database. 1.7 drivers are compatible with database 3.5 to 3.2 series.

For example the queries used in our examples are all verified.

@technige
Copy link
Contributor

Closing issue as unable to reproduce. Please reopen if more information emerges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants