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

[GraphQL] Cannot query image assets field type variations

    XMLWordPrintable

Details

    Description

      It's not possible to get a query image assets variations using GraphQL, as it ends with an error.

      Steps to reproduce:
      1. Login as admin
      2. Create a new Content Type named "MyImageAsset"
      3. Add image asset fieldtype
      4. Create a Content Item using that Content Type
      5. Regenerate GraphQL schema and clear cache
      6. Enter query similar to:

      {
        content {
          myimageasset(locationId: 57) {
      	newEzimageasset1 {
              variations(identifier:[small]) {
                name
              }
      			}
          }
        }
      }
      

      result:

      {
        "errors": [
          {
            "debugMessage": "Property 'value' not found on class 'eZ\\Publish\\Core\\FieldType\\Image\\Value'",
            "message": "Internal server Error",
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            marek.nocon@ibexa.co Marek NocoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: