Skip to content

PHP Fatal error when a variable is missing from operation name and dictionary of values #238

Description

@leoloso

I get the following exception:

PHP Fatal error:  Uncaught Error: Call to a member function hasDefaultValue() on null in .../vendor/youshido/graphql/src/Execution/Request.php:69

When executing a query which includes a variable, but:

  1. The variable was not defined in the operation name, AND
  2. The variable value was not passed in the dictionary

Click on this link and run the query to reproduce the error (it doesn't show the PHP exception error though, only that there was an internal server error)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions