graphql

steveb8n 2019-08-18T09:27:56.030300Z

Q: has anyone created a fn that coerces arguments using the GQL type definitions available in :com.walmartlabs.lacinia.constants/parsed-query?

chrisps 2019-08-18T10:06:46.030900Z

How would you interpret this?

"{\"errors\":[{\"message\":\"Failed to parse GraphQL query.\",\"extensions\":{\"errors\":[{\"locations\":[{\"line\":1,\"column\":null}],\"message\":\"mismatched input '\\\"query\\\"' expecting {'query', 'mutation', 'subscription', '...', NameId}\"},{\"locations\":[{\"line\":1,\"column\":null}],\"message\":\"mismatched input '\\\"b\\\"' expecting {'query', 'mutation', 'subscription', '...', NameId}\"},{\"locations\":[{\"line\":1,\"column\":null}],\"message\":\"extraneous input '}' expecting {<EOF>, 'query', 'mutation', 'subscription', '{', 'fragment'}\"}]}}]}"

chrisps 2019-08-18T10:08:12.032Z

This is from re-graph to lacinia (rf/dispatch [::re-graph/query :handler-a "{hero {id name}}" {} [::on-result]])

chrisps 2019-08-18T10:08:37.032400Z

the server-side was created with luminus

chrisps 2019-08-18T10:09:26.032900Z

I can do the same query to a nodejs instance running graphql and it works fine

chrisps 2019-08-18T10:33:11.033500Z

I guess what I am part. curious about is, where does this error message come from?