Is totalCount not implemented on Relay?
See original GitHub issueThis gives me an error in /graphql. Rest works like a charm though.
{
"errors": [
{
"message": "Cannot query field \"totalCount\" on type \"ProductNodeConnection\".",
"locations": [
{
"line": 3,
"column": 5
}
]
}
]
}
query{
allProducts(first:2 after:"YXJyYXljb25uZWN0aW9uOjM="){
totalCount
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges{
node{
id
name
}
cursor
}
}
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:24 (5 by maintainers)
Top Results From Across the Web
Is totalCount not implemented on Relay? - Bountysource
This gives me an error in /graphql. Rest works like a charm though. { "errors": [ { "message": "Cannot query field \"totalCount\" on...
Read more >Pagination Container - Relay
If not specified, Relay will default to using all of the previous variables and using the total count for the count variable. This...
Read more >How to pass total count to the client in pageInfo - Stack Overflow
Relay supports arbitrary fields on a connection, so you're free to name this count , totalCount , etc. Share.
Read more >Pagination | GraphQL
To ensure a consistent implementation of this pattern, the Relay project has a formal specification you can follow for building GraphQL APIs which...
Read more >A deep-dive into Relay, the friendly & opinionated GraphQL ...
*Although this convention is in the Relay docs, it's not enforced. input AddAlbumInput { artistId: ID! albumName: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is how to do it in version 2 (graphene is woefully undocumented) 😦
Yep that’s what we did but would be nice to have it in a stable release as this is necessary for pagination.