Skip to content

Scalar variables failing validation #51

Closed
@AstraLuma

Description

@AstraLuma

When I validate these queries against this schema (via this code), I'm getting this error:

graphql.error.graphql_error.GraphQLError: Unknown type 'Int'.

/home/astraluma/code/gobuildit/gqlmod/testmod/queries.gql:15:30
14 | 
15 | query HeroComparison($first: Int = 3) {
   |                              ^
16 |   leftComparison: hero(episode: EMPIRE) {

The results of pip freeze:

astor==0.8.0
-e git+git@github.com:go-build-it/gqlmod.git@6fe690f7ffb0634f4522ded57be8f40b21205c52#egg=gqlmod
graphql-core==3.0.0a2
import-x==0.1.0
pkg-resources==0.0.0

I'm pretty new to GraphQL, but as I understand it, Int is a builtin scalar that should always be available?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions