Hey, can someone point me to a place where I can r...
# prisma-whats-new
l
Hey, can someone point me to a place where I can read more about what context object is in resolvers, about it’s structure and function?
h
console.log(context)
😄
l
I can’t because “Converting circular structure to JSON”. I managed to get fields though, but I was asking also about wider picture of context usage
a
context contains any and all information that you want to share between resolvers
In a default
graphql-yoga
setting, it will contain the bindings, and the Express request object
You can add additional stuff to it in the GraphQLServer constructor, in the same place where the bindings are added
Here you can see what's added to the context. No magic going on there.
l
Thank you for your answer
👍🏻 1