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

GraphQL: plaintext format for richtext not implemented

    XMLWordPrintable

Details

    Description

      When requesting the plaintext output of a richtext field, the system returns an error. This is because the plaintext format is configured, but the resolver (RichTextXmlToPlainText) is not implemented:
      https://github.com/ezsystems/ezplatform-graphql/blob/ba2ae941042951245f237fb19026a4ea1e247498/src/Resources/config/graphql/Field.types.yml#L384

      1. Install eZ Platform clean install
      2. Install GraphQL bundle
      4. Open GraphiQL
      5. Execute query:

      {
        content {
          folders {
            name
            description {
              plaintext
            }
          }
        }
      }
      

      6. Observe error:

      {
        "errors": [
          {
            "message": "Internal server Error",
            "category": "internal",
            "locations": [
              {
                "line": 6,
                "column": 9
              }
            ],
            "path": [
              "content",
              "folders",
              0,
              "description",
              "plaintext"
            ]
          },
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jani.tarvainen@ibexa.co Jani Tarvainen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: