0.10: GraphQL typing ignores load option
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!
Seems like this is fixed by https://github.com/Shopify/tapioca/pull/1556
Seems like this is fixed by #1556
@fazo96 I think current graphql_mutation compiler resolves to something like T::Array[Types::PartyType] instead of T::Array[Party]
That's true @xinyifly I have noticed the same behavior recently