Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30278

[GraphQL] Cannot get ez media width

    XMLWordPrintable

    Details

      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

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            marek.nocon@ez.no Marek NocoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: