Manually create an object of type NexusContext #1371
Unanswered
brainafesoh
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, guys
I would like to manually inititialize a Nexus context object so as to be able to call a resolver function from an external function rather than from the mutation or query itself:
Not sure I'm expressing myself correctly!!
The query & resolver functions go as such;
I would like to use the resolver function without passing through the query, therefore I need to manually create a
ctx
object. Here's how I'm trying to do it, but I don't seem to figure out what has to go into thereq and res
attributes;@jasonkuhrt
Beta Was this translation helpful? Give feedback.
All reactions