Closed mathieutu closed 3 years ago
Hi!
The simplest way would be to use $info->getFieldSelection()
(you can specify the depth, 0 by default) to inspect what fields are present in the query.
You could also inspect something like $info->fieldNodes[0]->selectionSet->selections[*]
if you really want to inspect field arguments, definitions and more.
Let me know if this helps!
Hi! Thanks for this really quick answer, I was just closing the issue saying "nvm, I found getFieldSelection method." 😅
I let you know if I need something else, thanks!
Hi, I'm digging in your package and making some tests.
I would like to know in a resolver what fields are wanted in the resolved type, to be able to use them in a select.
example:
Could we do that?
Thanks.