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
Which you'll see is the same as our initial call before entering cursors except the hasNextPage is false. It should be true.
Hmm... 🤔
I'm not very familiar with Postgres. I'm tying into the public Stellar database so while I control my own instance I'm more familiar with GraphQL than with Postgres.
Here's the command I'm using to generate the table.
CREATE MATERIALIZED VIEW cg_assets
AS
SELECT DISTINCT assetcode, lastmodified FROM trustlines t INNER JOIN cg_issuers i ON t.issuer = i.issuer
ORDER BY lastmodified DESC, assetcode ASC
WITH DATA
My guess is it's something to due with ordering or key uniqueness but I'm not smart enough to actually know.
The text was updated successfully, but these errors were encountered:
@tyvdh Sorry it's taken me so long to get around to fixing this; I knew it was going to be a pain because I remembered the pain of implementing it the first time!
I'm submitting a ...
PostGraphile version: 4.0.0-rc.4
Having an issue with cursor pagination on a materialized view.
If we go here: https://core-test.gly.sh/graphiql
And enter this query
With these params
We get this page info
If we then use the
endCursor
we can paginate down through the rowsHowever now if we try and go back with the
startCursor
We get
Which you'll see is the same as our initial call before entering cursors except the hasNextPage is false. It should be true.
Hmm... 🤔
I'm not very familiar with Postgres. I'm tying into the public Stellar database so while I control my own instance I'm more familiar with GraphQL than with Postgres.
Here's the command I'm using to generate the table.
My guess is it's something to due with ordering or key uniqueness but I'm not smart enough to actually know.
The text was updated successfully, but these errors were encountered: