Automattic / vip-decoupled-bundle

WordPress VIP decoupled plugin bundle
29 stars 5 forks source link

Update WPGraphQL to v1.22.1 #85

Closed alecgeatches closed 7 months ago

alecgeatches commented 7 months ago

Description

Update WPGraphQL to the latest version (v1.22.1). Note there was a previous PR attempting an update with git subtree, but that was abandoned for dependency difficulties.

Steps to Test

  1. Install and activate the plugin.

  2. Go to Admin -> Settings -> VIP Decoupled and ensure "WPGraphQ" and "VIP Block Data API" are enabled.

  3. Go to Admin -> GraphQL -> GraphiQL IDE and try a block query against an existing post (431 below):

    query NewQuery {
      post(id: 431, idType: DATABASE_ID) {
        blocksData {
          blocks {
            id
            name
            innerBlocks {
              attributes {
                name
                value
              }
              id
              name
              parentId
            }
          }
        }
      }
    }
  4. See the results:

    Screenshot 2024-04-04 at 1 42 51 PM