wpengine / wp-graphql-content-blocks

Plugin that extends WPGraphQL to support querying (Gutenberg) Blocks as data
https://faustjs.org/docs/gutenberg/wp-graphql-content-blocks
GNU General Public License v2.0
107 stars 14 forks source link

CoreHeading & CoreButton blocks missing attributes in Graph QL query on Wordpress 6.5.3 #241

Closed rudiwebworx closed 4 months ago

rudiwebworx commented 4 months ago

GraphQL query to get core heading attribute: content and core button attribute: text

query NewQuery {
  pages(where: {id: 2}) {
    nodes {
      id
      title
      editorBlocks {
        ... on CoreHeading {
          attributes {
            content
          }
        }
        ... on CoreButton {
          attributes {
            text
          }
        }
      }
    }
  }
}

Returns the following error:

{
  "errors": [
    {
      "message": "Cannot query field \"content\" on type \"CoreHeadingAttributes\".",
      "extensions": {
        "category": "graphql"
      },
      "locations": [
        {
          "line": 9,
          "column": 13
        }
      ]
    },
    {
      "message": "Cannot query field \"text\" on type \"CoreButtonAttributes\".",
      "extensions": {
        "category": "graphql"
      },
      "locations": [
        {
          "line": 14,
          "column": 13
        }
      ]
    }
  ],

Not sure if refactoring of this plugin is now required because of changes in gutenberg in these core blocks in wordpress 6.5.3.

theodesp commented 4 months ago

Hello @rudiwebworx We did provide a fix for this in this PR https://github.com/wpengine/wp-graphql-content-blocks/issues/225 Are you using the latest version of this plugin?

rudiwebworx commented 4 months ago

Ah thanks!

Why is this plugin not on the wp plugin repo?

Problem is didnt tell me there was an update / have to update it manually.

Kind regards

Rudi Roux

Director / Head of Development

Email: @.***

Tel: +27(0)21 762 4824 Cell: 074 1050719 www.webworxdesign.co.za http://www.webworxdesign.co.za

On Tue, Jun 4, 2024 at 1:33 PM Theofanis Despoudis @.***> wrote:

Hello @rudiwebworx https://github.com/rudiwebworx We did provide a fix for this in this PR #225 https://github.com/wpengine/wp-graphql-content-blocks/issues/225 Are you using the latest version of this plugin?

— Reply to this email directly, view it on GitHub https://github.com/wpengine/wp-graphql-content-blocks/issues/241#issuecomment-2147304095, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALEWFY3QLX57NQAOJGMXZ5DZFWQXBAVCNFSM6AAAAABISIXXI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXGMYDIMBZGU . You are receiving this because you were mentioned.Message ID: @.***>

ChrisWiegman commented 4 months ago

Hello @rudiwebworx, we are looking at better distribution of this plugin as we do believe it is stable enough to do so. Please watch for that in the coming months.

rudiwebworx commented 4 months ago

Great thanks Chris!

Kind regards

Rudi Roux

Director / Head of Development

Email: @.***

Tel: +27(0)21 762 4824 Cell: 074 1050719 www.webworxdesign.co.za http://www.webworxdesign.co.za

On Tue, Jun 4, 2024 at 3:37 PM Chris Wiegman @.***> wrote:

Hello @rudiwebworx https://github.com/rudiwebworx, we are looking at better distribution of this plugin as we do believe it is stable enough to do so. Please watch for that in the coming months.

— Reply to this email directly, view it on GitHub https://github.com/wpengine/wp-graphql-content-blocks/issues/241#issuecomment-2147557559, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALEWFY24E4LFRBG54QONPUDZFW7H5AVCNFSM6AAAAABISIXXI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXGU2TONJVHE . You are receiving this because you were mentioned.Message ID: @.***>