dillonkearns / elm-graphql

Autogenerate type-safe GraphQL queries in Elm.
https://package.elm-lang.org/packages/dillonkearns/elm-graphql/latest
BSD 3-Clause "New" or "Revised" License
778 stars 107 forks source link

Can not find ScalarCodecs #603

Closed ad-si closed 2 years ago

ad-si commented 2 years ago

I'm trying to build a simple todo app for Airsequel and it had been working in the past, but since I've extended the introspection results to include input objects, I'm getting weird errors like I cannot find a 'Api.ScalarCodecs.StringComparison' type:

Screen Shot 2022-07-26 at 06 59 29Z

The introspection results look OK to me, so maybe it's a bug with elm-graphql?

Here is the full tutorial: https://feram.notion.site/How-to-build-a-todo-app-with-Airsequel-and-Elm-Free-Edition-1b651c46a2fc4bafb23a649e9a08ab39

ad-si commented 2 years ago

Found the error: I accidentally declared a field as kind SCALAR although it was INPUT_OBJECT