Closed
Description
this
{ "foo": [1, 2, 3]}
is a correct payload for the muation
export default mutationWithClientMutationId({
name: 'Test',
inputFields: {
foo: { type: new GraphQLNonNull(GraphQLString) },
},
...
happening beacuse of this.
Clearly [1, 2, 3]
is not a string and this should probably be rejected. This kind of coercion makes sense for output types, but for mutation input this seems very odd, even more so considering that other things are validated (non-nullness, integers). I mean, if [1, 2, 3]
is a string, then why isn't "foo"
a valid integer? I am seeing a disparity here. Is there a reason for that?