You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG: Argument 1 passed to WPGraphQL\Extensions\OffsetPagination\Loader::op_filter_graphql_connection_query_args() must be of the type array, null given
REPRODUCE: Add the enqueuedScripts or enqueuedStylesheets to any post or page query. (necessary for querying gutenberg content or content from classic plugins.)
(use any valid post_id)
query MyQuery {
post(id: "cG9zdDox") {
id
enqueuedScripts(first: 999) {
nodes {
id
}
}
enqueuedStylesheets(first: 999) {
nodes {
id
}
}
}
}
Same query works fine when offset pagination plugin is disabled.
The text was updated successfully, but these errors were encountered:
JoshuaJarman
changed the title
Offset Pagination throws error if enqueuedScripts or enqueuedStylesheets are added to the graphql query
Offset Pagination throws error if enqueuedScripts or enqueuedStylesheets are added to the graphql query for posts or pages
May 21, 2021
JoshuaJarman
added a commit
to JoshuaJarman/wp-graphql-offset-pagination
that referenced
this issue
May 23, 2021
Fixes Bug: Argument 1 passed to WPGraphQL\Extensions\OffsetPagination\Loader::op_filter_graphql_connection_query_args() must be of the type array, null given
Bug Occurs: When roles, enqueuedScripts, enqueuedStyleshets, or any other unaccounted for subquery is added because null parameter is not allowed by type definition, removing type definition fixes the issue.
BUG: Argument 1 passed to WPGraphQL\Extensions\OffsetPagination\Loader::op_filter_graphql_connection_query_args() must be of the type array, null given
REPRODUCE: Add the enqueuedScripts or enqueuedStylesheets to any post or page query. (necessary for querying gutenberg content or content from classic plugins.)
(use any valid post_id)
Same query works fine when offset pagination plugin is disabled.
ERROR:
The text was updated successfully, but these errors were encountered: