Skip to content

Commit cef760a

Browse files
committed
adds test for incorrect var types
1 parent 48f9624 commit cef760a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/GraphQL/Client/Variables.purs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class VarsTypeChecked schema query where
213213
instance varsTypeCheckedWithVars ::
214214
( GetGqlQueryVars schema query { | gqlVars }
215215
, HFoldlWithIndex (CombineVarsProp { | gqlVars }) GqlQueryVarsN { | vars } GqlQueryVarsN
216-
, GetVar query {| vars}
216+
, GetVar query { | vars }
217217
) =>
218218
VarsTypeChecked schema (WithVars query { | vars }) where
219219
getVarsJson _ (WithVars encode _ vars) = encode vars
@@ -275,16 +275,17 @@ instance queryVarsOrArg ::
275275
)
276276
-- Since this matches over _any_ schema, this must come before the pattern
277277
-- match for AsGql such that the schema is preserved through l and r.
278-
=> GetGqlQueryVars schema (OrArg l r) { | vars }
278+
=>
279+
GetGqlQueryVars schema (OrArg l r) { | vars }
279280

280281
else instance queryVarsAndArgs ::
281282
( GetGqlQueryVars schema l { | varsL }
282283
, GetGqlQueryVars schema r { | varsR }
283284
, Row.Union varsL varsR trash
284285
, Row.Union varsR varsL trash
285286
, Row.Nub trash vars
286-
)
287-
=> GetGqlQueryVars schema (AndArgs l r) { | vars }
287+
) =>
288+
GetGqlQueryVars schema (AndArgs l r) { | vars }
288289

289290
else instance queryVarsAsGqlVar ::
290291
( Row.Cons name (Proxy gqlName) () result

0 commit comments

Comments
 (0)