Skip to content

Args array is empty in GraphQLType fields() function #459

@nurges

Description

@nurges

Versions:

  • graphql-laravel Version: 2.0.1
  • Laravel/Lumen Version: 5.8
  • PHP Version: 7.3

Description:

Empty args array is passed into GraphQLType fields() function, although it's correct in query resolve().
The cause is line 99 in Rebing\GraphQL\Support\SelectFields.php where $requestedFields['args'] is already empty.
Previous graphql version used self::$args instead, that contains the correct data.

Steps To Reproduce:

Execute a query with some arguments and try to access these from GraphQLType fields().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions