Skip to content
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

Injecting a custom parameter via cypherParams #185

Closed
Yakimych opened this issue May 1, 2021 · 0 comments · Fixed by #254
Closed

Injecting a custom parameter via cypherParams #185

Yakimych opened this issue May 1, 2021 · 0 comments · Fixed by #254
Labels
regression report Something isn't working that was working before

Comments

@Yakimych
Copy link

Yakimych commented May 1, 2021

Describe the regression
I am currently migrating an existing application from neo4j-graphql-js to this official library and can't seem to find a way to implement the following scenario:

  • A value is sent as a header along with the GraphQL request
  • Before passing it to Neo4j-graphql, we call an external API with this value and get a parameter that would be passed to the cypher query
  • We put it in cypherParams.myValue and inject into the cypher when specifying the GraphQL schema

As far as I can see, there is only functionality to get values from JWT, but no way of (synchronously or asynchronously) fetching and injecting custom parameters.

Last working version

neo4j-graphql-js

@neo4j/[email protected]

System (please complete the following information):

Any

@Yakimych Yakimych added inbox regression report Something isn't working that was working before labels May 1, 2021
@danstarns danstarns mentioned this issue Jun 15, 2021
6 tasks
@danstarns danstarns linked a pull request Jun 15, 2021 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression report Something isn't working that was working before
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant