Open simakwm opened 7 years ago
any progress on this?
Nope. :(
Hi @simakwm ,
have you checked the Schema, the ids are created like this :
id: { name: 'id', type: new GraphQLNonNull(GraphQLInt) }
So your query could be :
query test{ city { id:1 } }
Have you tried to query by id?
Not yet. In fact gave up trying to use graphql for now.
I hava a table described like this:
type City { id: Int! name: String! }
Well, if I want to query all cities I should do:
query test{ city { name } }
But I got this error:
Field "city" argument "id" of type "Int!" is required but not provided.
So I was thinking if is there a way to list all cities instead of only one.