Skip to content

Basic types throwing errors known_type errors during validationΒ #46

@allancalix

Description

@allancalix

Summary

Query inputs throw "Unknown type \"String\"." for all basic types. It seems as though the basic scalars are not included in the schema after being parsed. Defining the scalars explicitly in the schema seems to resolve the issue:

scalar Boolean
scalar Float
scalar Int
scalar ID
scalar String

Not sure whether this is expected or not as this doesn't happen in the rules tests because the scalars are explicitly defined in the introspection schema here.

Observed behavior

validate(&schema, &query, &default_rules_validation_plan) # => `"Unknown type \"String\"."` for all basic types.

Expected behavior

Basic types are valid in query input arguments

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