- All Implemented Interfaces:
- graphql.schema.DataFetcher
public class ErrorCountFetcher
extends Object
implements graphql.schema.DataFetcher
Get quantity of errors broken down by error type.
GraphQL does not have a type for arbitrary maps (String -> X). Such maps must be expressed as a list of
key-value pairs. This is probably intended to protect us from ourselves (sending untyped data) but it leads to
silly workarounds like this where there are a large number of possible keys.
"Unfortunately what you'd like to do is not possible. GraphQL requires you to be explicit about specifying which
fields you would like returned from your query."
"Ok, and if I request some object of an unknown form from backend which I'm supposed to proxy or send back?"
"the whole idea of graphql is that there is no such thing as an 'unkown form'".
https://stackoverflow.com/a/34226484/778449