-
Notifications
You must be signed in to change notification settings - Fork 15
Add an example for using input arguments with cypher #132
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
Add an example for using input arguments with cypher #132
Conversation
| [source, graphql, indent=0] | ||
| ---- | ||
| query { | ||
| name(value: "aca") |
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.
what's "aca"?
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.
It's a random text. I will change for something better
Co-authored-by: Richard Sill <156673635+rsill-neo4j@users.noreply.github.com>
| } | ||
| ---- | ||
|
|
||
| The following GraphQL query returns the parameter `value`: |
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.
is the parameter name or value? i think i'm confused
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.
Here I'm trying to reference the parameter (value) passed to the query (name).
|
|
||
| [source, graphql, indent=0] | ||
| ---- | ||
| query { |
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.
another point of confusion on my part: how does this query relate to the query above with the cypher directive in it?
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.
In this query we are passing a parameter called value that is caught by the @cypher directive (see the $value)
Co-authored-by: Richard Sill <156673635+rsill-neo4j@users.noreply.github.com>
|
Thanks for the documentation updates. The preview documentation has now been torn down - reopening this PR will republish it. |
No description provided.