question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Providing custom context to GraphQLApp

See original GitHub issue

Hi.

It would be useful to be able to inject values into the context provided to the graphql schema when using the GraphQLApp. It can be used to provide dependencies, for example.

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
DrPysercommented, Apr 5, 2020

Yes, good point. @tomchristie could you consider reopening this?

5reactions
brendanlongcommented, Apr 4, 2020

The frustrating thing about this is that it’s possible but forces layering violations: I can’t write a Graphene schema that isn’t intimately aware of the web server that’s going to be executing it 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Context Link - Apollo GraphQL Docs
The setContext function accepts a function that returns either an object or a promise, which then returns an object to set the new...
Read more >
Context – GraphQL Modules
In GraphQL, a context is an object shared by all the resolvers of a specific execution. It's useful for keeping data such as...
Read more >
Generating GraphQL Context | GraphQL Kotlin
Generating GraphQL Context. graphql-kotlin-spring-server provides a Spring specific implementation of GraphQLContextFactory and the context.
Read more >
Execution - GraphQL
A query language for your API — GraphQL provides a complete description of the data in your API, gives clients the power to...
Read more >
Custom Context Data - Hot Chocolate v10 - ChilliCream
When implementing custom middleware, it can be useful to be able to store some custom state on the context. This could be to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found