Open
Description
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
When querying collections, ie:
query testNodesQuery {
testNodes(first: 10, skip: 0) {
id
name
}
}
There is no way to determine the total number of query results. It's possible to page through until we reach a page where the result count is less than the first
param, but it's extremely cumbersome.
What is the expected behavior?
I'd suggest a result object:
type TestNode @entity {
id: ID!
name: Bytes
}
type TestNodesResult {
totalCount: Int!
skip: Int
first: Int
result: [TestNode!]!
}
type Query {
testNodes(...): TestNodesResult!
}
Metadata
Metadata
Assignees
Type
Projects
Status
Todo