Using the "startCursor" from the "productsForward" pageInfo result in the "before" input we try to go back... but we get unexpected resulting products in a strange order.
Expected behavior
Given the provided inputs "productsBackward" query should return the same products as the initial "products" query. If we omit the "orderby" input in all the above queries everything appears to work as expected.
Describe the bug When querying products with "last", "before" and "orderby" inputs the returned products are not as expected.
To Reproduce Initial query to get some products and pageInfo...
Using the "endCursor" from this query as the "after" input the following query we get the next 5 products...
Using the "startCursor" from the "productsForward" pageInfo result in the "before" input we try to go back... but we get unexpected resulting products in a strange order.
Expected behavior Given the provided inputs "productsBackward" query should return the same products as the initial "products" query. If we omit the "orderby" input in all the above queries everything appears to work as expected.
Plugin Versions
Additional context I could be doing it wrong :)