Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-02-2019 12:43 PM
I have my deatils of the login and password in the following two variables:
let username = req.body.username;
let password = req.body.password
Now I have written the cypher query to fetch the details from the database which matches with the entered username and password, but my query does not fetch any result, but the node of that username and password exists in the database.
The query is:
session
.run('Match (n:voters) WHERE n.id={idParam} AND n.password={passwordParam} RETURN n',{idParam:username,passwordParam:password})
.then(function(result){
result.records.forEach(function(record){
console.log(record);
});
})
11-04-2019 11:36 AM
Check for preceding or trailing whitespace both in the parameters, and in the properties on the :voters node you're testing against.
Also make sure your cases match (labels and property names are case sensitive).
All the sessions of the conference are now available online