Is it possible to specify that a field in GraphQL should be a blackbox, similar to how Flow has an "any" type? I have a field in my schema that should be able to accept any arbitrary value, which could be a String, Boolean, Object, Array, etc.
I've come up with a middle-ground solution. Rather than trying to push this complexity onto GraphQL, I'm opting to just use the String
type and JSON.stringify
ing my data before setting it on the field. So everything gets stringified, and later in my application when I need to consume this field, I JSON.parse
the result to get back the desired object/array/boolean/ etc.