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
What happens behind the scenes, for example in QueryKeyArgumentFetcher.get():
We retrieve the argument ("abc") from the DataFetchingEnvironment, which is JSON representation of the graphql schema,
We fetch a value of a specific type (Double, Avro, Protobuf) from the DataFetcherClient,
This value is then converted by the framework (which one?) to JSON and delivered to the client.
If we start and end up with JSON, we make unnecessary conversions. Thus, we might refrain from working with different data types (f.e., Double, Protobuf, Avro) in Gateway and work directly with JSON.
For this:
a) MirrorDataFetcherClient has to be rebuilt so that it does not work with TypeResolver<V> but with JSON,
b) MirrorClient should not receive a resolver that works on a given data type but simply on JSON.
Additionally, it might be considered to complete remove the generic V parameter from Gateway.
The text was updated successfully, but these errors were encountered:
Consider the scenario in which a user wants to make a query according to the following:
with a concrete query being:
What happens behind the scenes, for example in
QueryKeyArgumentFetcher.get()
:DataFetcherClient
,If we start and end up with JSON, we make unnecessary conversions. Thus, we might refrain from working with different data types (f.e., Double, Protobuf, Avro) in Gateway and work directly with JSON.
For this:
a)
MirrorDataFetcherClient
has to be rebuilt so that it does not work withTypeResolver<V>
but with JSON,b)
MirrorClient
should not receive a resolver that works on a given data type but simply on JSON.Additionally, it might be considered to complete remove the generic V parameter from Gateway.
The text was updated successfully, but these errors were encountered: