Skip to content

0.10: GraphQL typing ignores load option #1150

Open
@bmulholland

Description

@bmulholland

We have a mutation with an argument that uses GraphQL's loads option, which auto-fetches objects by their ID.

It looks like this: argument :party_ids, [ID], loads: Types::PartyType, as: :parties

The type of the argument coming in to resolve is then T::Array[Party], but the new compiler thinks they're still T::Array[String]

cc @jeffcarbs -- just an FYI, no expectation that you fix this, thanks for the work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions