Skip to content

[Bug] pageInfo cursors for plugins and themes are not correctly returning arrayconnection:{id} #2087

@justlevine

Description

@justlevine

It seems the endCursor and startCursor on plugins and themes is incorrectly returning the bas64encode value of arrayconnection:{path_to/plugin.php} instead of arrayconnection:{#} (which is what's required by the before/after params).

To replicate:

plugins(first:5){
  pageInfo{
    endCursor # arrayconnection:{path_to/plugin.php}
    startCursor 
  }
  notWorking: plugins(first:5, after: $endCursor ){ # expects arrayconnection:{#}
  pageInfo{
    endCursor
    startCursor # arrayconnection:{path_to/plugin.php}
  }
  nodes { # returns []
    name
  }
}

WPGraphQL v1.6.4
WordPress: v5.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: actionableReady for work to beginstatus: in progressCurrently being worked ontype: bugIssue that causes incorrect or unexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions