-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I mean if the limit=5 and results length is 5, count = 5
Is it intended?
What I expect is count = number of filtered rows without limit
type Order @model(table: "orders", pk: "id") {
id: ID!
clientId: ID!
clientUserId: ID!
createdAt: String
status: String
paymentId: String
amount: String
productCode: String
quantity: String
}
type Query @sqlmancer(dialect: POSTGRES, transformFieldNames: SNAKE_CASE) {
hello(name: String): String
isAuth: AuthPayload!
orders: Order @many @paginate
}
async orders(_, __, { sql, client }, info) {
isAuth
return client.models.Order.paginate().count().selectAll().resolveInfo(info).execute()
},
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request