Skip to content

v1.0.2

Choose a tag to compare

@dadish dadish released this 19 Nov 11:28

1.0.2

⚠️ WARNING: Breaking Changes! ⚠️

  • The module was rewritten to use webonyx/graphql-php instead of youshido/graphql.
  • The following fields are removed and no longer will be available for Page object types.
    • find
    • next
    • prev
    • rootParent
    • siblings
  • An experimental pages field is dropped and no longer supported.
  • No more Grant Templates Access and Grant Fields Access options. You now have to explicitly set access permissions to all the templates and fields you want to serve via GraphQL.
  • ProcessGraphQL->executeGraphQL now returns an array. You'll need to convert it to JSON before sending it to the client. You can use json_encode php method for that.
  • "updatePage" fields no longer accept the id argument. You have to pass the page's id you want to update into page argument of the "updatePage" field.
  • The lowest version of PHP is 7.1 is required.
  • If you had used a third-party module to support additional PW fields for GraphQL, then they are no longer going to work. You'll have to update them to use webonyx/graphql-php.
  • If you used GraphqlFieldtypeMapMarker module, you need to update it to the latest version available.

What's new

  • trash(id: ID!): Page! field allows to move pages to trash via GraphQL api.
  • Solves N+1 problem for FieldtypePage field. Significantly improves response speed!
  • Support for FieldtypeRepeater.
  • Support for even more ProcessWire permissions:
    • page-add
    • page-create
    • page-delete
    • page-edit
    • page-move
    • page-view
    • page-edit-created
    • page-edit-trash-created