Skip to content

Commit

Permalink
use gql name for enum lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
roryc89 committed Sep 18, 2023
1 parent 277908d commit 1a61b99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codegen/schema/src/GraphQL/Client/CodeGen/SchemaCst.purs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ gqlToPursSchema
_ -> case lookup name gqlToPursTypes of
Just t -> Just $ qualifiedTypeToName t
_ ->
case lookup tName enumsM of
case lookup name enumsM of
Just t -> Just t
_ -> case Map.lookup (toLower name) defaultTypes of
Just t -> Just t
Expand Down
2 changes: 1 addition & 1 deletion gen-schema-bundled.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58538,7 +58538,7 @@ var gqlToPursSchema = function(v) {
return new Just(qualifiedTypeToName(v4.value0));
}
;
var v5 = lookup5(tName)(v2);
var v5 = lookup5(name2)(v2);
if (v5 instanceof Just) {
return new Just(v5.value0);
}
Expand Down

0 comments on commit 1a61b99

Please sign in to comment.