Is there any way of accessing __typename
in a resolver?
#1087
Answered
by
spawnia
abdullahseba
asked this question in
Q&A
-
I'm am trying to get the name of the types used in a query from the resolver. Something similar to {
users(first: 1, after: "MQ==") {
__typename
edges {
node {
userName
email
}
}
}
}
Result: {
"data": {
"users": {
"__typename": "UserConnection",
"edges": [
{
"node": {
"userName": "user1",
"email": "[email protected]"
}
}
]
}
}
} Is there something similar that can be accessed from the resolver? Looking in |
Beta Was this translation helpful? Give feedback.
Answered by
spawnia
Mar 10, 2022
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
abdullahseba
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ResolveInfo::lookAhead()->queryPlan()