Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rsill-neo4j
Copy link

No description provided.

== Connect to the database

The following JavaScript snippet connects to a Neo4j database.
Set your values for `<neo4j-database-uri>`, `<username>` and `<password>`:
Copy link

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.
Copy link

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.
Copy link

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`.
Copy link

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.

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

Successfully merging this pull request may close these issues.

2 participants