You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason I need the data which was requested, if the query returns data its quite easy (as I may use the json to derive fields from), but I now need that also for the case that no data is returned.
Thanks in advance,
Stefan
The text was updated successfully, but these errors were encountered:
You mean get a parsed representation of the query string on the client side?
There is currently no such functionality inside the client, it just passes the query string to the server as string.
Maybe you can utilize some functionality of GraphQL.NET to parse the query on the client side for your purposes. (Maybe start looking here, that's where it turns the query string into an object...)
tried now a different path - using the GraphQl-Parser and reconstructing it from the AST. May be a bit over the top, but is working now quite efficient.
Hi there,
I would like to ask if there is an easy way to access requested fields from an executed query?
My processing looks like that:
For some reason I need the data which was requested, if the query returns data its quite easy (as I may use the json to derive fields from), but I now need that also for the case that no data is returned.
Thanks in advance,
Stefan
The text was updated successfully, but these errors were encountered: