Has anyone seen an "unknown argument on field" error using GraphQL-Yoga? Here's a 1 minute video where I modify the schema, the introspection shows everything, but when the query is run, error.
https://cl.ly/0U0R460c2n1F
d
divyendu
07/26/2018, 9:06 AM
Maybe you have to update your resolver as well?
or maybe the underlying (Prisma?) binding does not have this argument?
l
lawjolla
07/26/2018, 4:35 PM
Thanks @divyendu! Here's the whole thing... query through schema and resolver. https://cl.ly/0j23352O0w1H
lawjolla
07/26/2018, 5:05 PM
For anyone playing along at home, it was a naming conflict. Defined in both schema.graphql and datamodel.graphql. I would think that schema.graphql would take precedence
👍 1
d
divyendu
07/26/2018, 5:09 PM
I think that there is an open issue for this as well