cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Building Neo4j App With NodeJS - Mistake found

tard_gabriel
Ninja
Ninja

Hi there

I think there is a mistake in the Building Neo4j App With NodeJS new course

Chapter -> Interacting with Neo4j
Challenge -> Authenticating a User

If you look at the final Working Solution, you can see that the session is closed almost at the end of the function...which means if there is no user matching the one provided by the UI or if the password is wrong the function will return false and the session will never close.

Is it intentional and there is something I don't understand ?
Because in the register function before we made sure that the session was closed whatever happen.

1 ACCEPTED SOLUTION

adam_cowley
Neo4j
Neo4j

Good spot, thank you for reporting it. You're correct, because the results are consumed straight away and there are no more interactions with the database the session can be closed. I will get the code updated

View solution in original post

2 REPLIES 2

adam_cowley
Neo4j
Neo4j

Good spot, thank you for reporting it. You're correct, because the results are consumed straight away and there are no more interactions with the database the session can be closed. I will get the code updated

I'm glad to know that I understood the stuff

Quick question,

I had some courses and certifications done in the "old" graph academy, I would like to know if at some points these will be transfer in the new one?

Thanks

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit - November 16 - 17, 2022.


Free NODES Training Series


October 19th -

Intro to Neo4j


October 20th -

Healthcare Analytics Using Neo4j


October 25th -

Handling Neo4j data with Apache Hop


October 26th -

Blazing Fast Graphs: Hands-on with Apache Arrow and Neo4j


November 2nd -

Graph EDA Using the Neo4j GDS Client