GraphQLBundle: Type error introduced in 1.2.0

Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? no
Version/Branch 1.2.0

Works well in 1.1.0

    #[GQL\Access('isAuthenticated()')]
    #[GQL\Mutation(name: 'removeCasesFromPlan')]
    #[GQL\Arg(name: 'planId', type: 'String!')]
    #[GQL\Arg(name: 'cases', type: '[String!]!')]
    public function removeCase(string $planId, array $cases = []): TestPlan
    {

However in 1.2.0

Argument n°2 "$cases" on method "removeCase" cannot be auto-guessed from the following type guessers:                                                   
[Type Hint] No corresponding GraphQL type found for builtin type "array" 

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 23 (5 by maintainers)

Commits related to this issue

Most upvoted comments

I have a project with the error. I’ll check asap and let you know 😃

Hey @mathroc! Can you check into this please? It seems that your PR introduce a side-effect.