- π¨πSwitzerland dulnan
I have fixed this (and other similar issues). They happened because by default, if no extensions are enabled, there are no fields on the Query type. This results in the following (invalid) schema:
type Schema { query: Query } type Query
The module now implements a ping query and mutation by default, so that it's not possible anymore to generate a schema with empty Query or Mutation types.
- π¨πSwitzerland ayalon
This will be part of the 1.0.0-beta5 release.
- Status changed to Fixed
over 1 year ago 12:41pm 10 March 2023 - π©πͺGermany Naitschi
Hello the Error occurs again:
GraphQL\Error\SyntaxError: Syntax Error: Expected Name, found } in GraphQL\Language\Parser->expect() (line 366 of /var/www/html/vendor/webonyx/graphql-php/src/Language/Parser.php).
I reproduced it like mentioned in "Steps to reproduce" in the Issue.
Versions:
Drupal 10.1.6
Graphql 4.6
graphql_core_schema 1.0.0-beta7