Functions

The functions documented below are provided by WPGraphQL to extend the Schema or interact with the GraphQL API.

register_graphql_admin_notice

Add an admin notice that will display on the plugins page, network plugins page, WPGraphQL Settings page and WPGraphQL IDE page.

View Function

graphql

Given an array with a Query and optional Variables and Operation Name this executes a GraphQL request.

View Function

register_graphql_scalar

Given a config array for a custom Scalar, this registers a Scalar for use in the Schema

View Function

register_graphql_connection

Given a config array for a connection, this registers a connection by creating all appropriate fields and types for the connection.

View Function