Closed zhaoyi0113 closed 1 year ago
I have a schema file as:
query getChat($id: ID!) { getChat(id: $id) { id msg topic } }
when I run go run github.com/Khan/genqlient --init, it gives me an error: schema.graphql:1: invalid schema: Unexpected Name "query".
go run github.com/Khan/genqlient --init
schema.graphql:1: invalid schema: Unexpected Name "query"
I wonder what the correct schema I should use.
I have a schema file as:
when I run
go run github.com/Khan/genqlient --init
, it gives me an error:schema.graphql:1: invalid schema: Unexpected Name "query"
.I wonder what the correct schema I should use.