Details
-
Bug
-
Resolution: Fixed
-
High
-
2.5.0-beta2
Description
It's not possible to query for ez media field type width, as it ends with an error.
Steps to reproduce:
1. Login as admin
2. Create a new Content Type named "MyMedia"
3. Add ez media fieldtype
4. Create a Content Item using that Content Type
5. Regenerate GraphQL schema and clear cache
6. Enter query similar to:
{ content { mymedia(locationId: 57) { newEzmedia19 { width } } } }
Result:
"debugMessage": "Property 'widht' not found on class 'EzSystems\\EzPlatformGraphQL\\GraphQL\\Value\\ContentFieldValue'", "message": "Internal server Error",
This is most likely caused by a typo here: https://github.com/ezsystems/ezplatform-graphql/blob/ba2ae941042951245f237fb19026a4ea1e247498/src/Resources/config/graphql/Field.types.yml