GraphQL Blackbox / “Any” type?

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.stringifying 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.

Leave a Comment