Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grapqhl schema is empty [4.2.5]: #11979

Closed
vitalijalbu opened this issue Sep 21, 2022 · 5 comments
Closed

Grapqhl schema is empty [4.2.5]: #11979

vitalijalbu opened this issue Sep 21, 2022 · 5 comments

Comments

@vitalijalbu
Copy link

What happened?

Description

My graqhql schema is empty, also i created a new one but still empty.
Using craft pro 4.2.5, don't have a license key because still in development on a third-domain (https://demo.resthotels.it/)

Expected behavior

I came from version 3 where graphql worked fine, but now in version 4 cannot access to graphql. Maybe is due to the license key=?!
Would be better to add a option of a third-domain development env where users can test their websites, without completely buying the license.

Actual behavior

Graqhql schema is empty.

Craft CMS version

4.2.5

PHP version

8.0.23

Operating system and version

Linux 3.12.18-clouder0

Database type and version

mysql

Image driver and version

GD 8.0.23

Installed plugins and versions

Image Resizer | 3.0.2

Maps | v4.0.3

Schermata 2022-09-21 alle 11 45 01

Schermata 2022-09-21 alle 11 52 10

@giorgiopogliani
Copy link

giorgiopogliani commented Sep 21, 2022

Same problem with a fresh install using composer create-project craftcms/craft

If I press play I get this error:

{
  "name": "PHP Compile Error",
  "message": "Type of craft\\gql\\types\\DateTime::$name must be string (as in class GraphQL\\Type\\Definition\\ScalarType)",
  "code": 64,
  "error": "Type of craft\\gql\\types\\DateTime::$name must be string (as in class GraphQL\\Type\\Definition\\ScalarType)",
  "exception": "yii\\base\\ErrorException",
  ....
}

@giorgiopogliani
Copy link

Forcing webonyx/graphql-php at version 14.11.5 seems to fix the problem

@vitalijalbu
Copy link
Author

yes, i think so because just saw they released new version of graphql, so what should i do? by myself or wait for craft team? @brandonkelly thanks.

@brandonkelly
Copy link
Member

Looks like webonyx/graphql-php 14.11.7 contained breaking changes that were intended for 15.0.0, and a fix for 14.x is imminent – webonyx/graphql-php#1221 (comment)

@brandonkelly
Copy link
Member

Just released Craft 3.7.55.1 and 4.2.5.1, which mark webonyx/graphql-php 14.11.7 as a conflicting package/version, so they can’t be used together.

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

No branches or pull requests

3 participants