-
Notifications
You must be signed in to change notification settings - Fork 12
added graphql connect #57
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
base: main
Are you sure you want to change the base?
Conversation
== Connect to the database | ||
|
||
The following JavaScript snippet connects to a Neo4j database. | ||
Set your values for `<neo4j-database-uri>`, `<username>` and `<password>`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not, but is it worth pointing out how you might get this information?
|
||
== Set GraphQL type definitions | ||
|
||
Extend your JavaScript with a constant that holds GraphQL type definitions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Extend" in the programming context is a word which already has a lot of meaning, perhaps we can rephrase this?
I am thinking something as simple as "Add onto" or so.
🚀 Server ready at http://localhost:4000/ | ||
---- | ||
|
||
That is where the Apollo server starts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a common, and good, practice to have the full code example at the end.
== Start the server | ||
|
||
You are ready to start up your GraphQL server. | ||
Execute your JavaScript with `node`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depending on how far we want to go, we can also provide an example of how to use node to start the server, though I do note at no point did we mention "create a file called x.js" etc.
No description provided.