You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use Lacinia to quickly validate GraphQL queries we define in code to try and avoid committing something invalid. I noticed a couple of examples of typos which don't cause com.walmartlabs.lacinia.parser.query/parse-query to fail:
(nstemp
(:require [com.walmartlabs.lacinia.parser.query :as pq]))
;; Brace switched with paren end of line 1 - Throws an exception
(pq/parse-query"query ( myQuery { name }}")
;; Missing brace end of line 1 - Doesn't throw an exception
(pq/parse-query"query myQuery { name }}")
;; Missing brace end of line 2 - Doesn't throw an exception
(pq/parse-query"query { myQuery name }}")
These queries are then failing when they are sent to a service using Lacinia for its GraphQL handling.
The text was updated successfully, but these errors were encountered:
This is tested with
1.2.1
.We use Lacinia to quickly validate GraphQL queries we define in code to try and avoid committing something invalid. I noticed a couple of examples of typos which don't cause
com.walmartlabs.lacinia.parser.query/parse-query
to fail:These queries are then failing when they are sent to a service using Lacinia for its GraphQL handling.
The text was updated successfully, but these errors were encountered: