Closed RichAyotte closed 7 years ago
The title of the bug mentions graphql 0.10.0-1
, while the description mentions 0.10.1
.
Which version are you using?
Same problem on both 0.10.0 and 0.10.1. I just used to 0-1 to indicate range.
Isn't InputType
only enforced for mutations? I'm not aware they changed the way args works but that doesn't say much.
Can confirm. I have a similar issue with attributeFields
helper function
const type = new GraphQLObjectType({
name: 'user',
description: 'A user',
fields: attributeFields(model)
// fields: {
// id:{
// type: GraphQLInt
// }
// }
})
where it yelds the following error
Error: user.id field type must be Output Type but got: Int!.
reverting graphql to version 0.9.6 solves the problem
Can anyone link a relevant changelog? Seems like a change to the spec
I'm no longer experiencing this problem and I'm not sure what fixed it. The only relevant change that think I've made is update Node to v8.1.2.
@Yarkhan what version of Node are you running?
I didn't find anything on the changelog that seems related to these errors.
@RichAyotte I was on 7.6.0. I've updated node to 8.1.2 to see if it would solve my problem, but got the same error. I will stick with graphql 0.9.6 for the moment
@Yarkhan Another shot in the dark... maybe your node_modules directory has become inconsistent? Can you rm -r node_modules; yarn or npm to reinstall?
I'm ready to close this issue as I'm no longer able to reproduce it.
@RichAyotte Tried that too, didn't work. Maybe my issue is not related with this one at all. I will open an issue describing the exact steps to reproduce it. Anyway, reverting to 0.9.6 has worked for me Thanks guys!
Just upgraded graphql
to 0.10.3 and I am experiencing the very same issue you described.
After upgrading to graphql 0.10.1, I get the following error.
Work fine with 0.9.6.
I'm using defaultArgs() and defaultListArgs() helper functions to generate the args.
Here's the field object.