feat: Implement pagination logic and use with getExecutions query
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
906a8d0644
commit
44623cc384
@@ -7,7 +7,7 @@ type Query {
|
||||
getFlow(id: String!): Flow
|
||||
getFlows: [Flow]
|
||||
getStepWithTestExecutions(stepId: String!): [Step]
|
||||
getExecutions: [Execution]
|
||||
getExecutions(limit: Int!, offset: Int!): ExecutionConnection
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
@@ -354,6 +354,20 @@ type User {
|
||||
updatedAt: String
|
||||
}
|
||||
|
||||
type PageInfo {
|
||||
currentPage: Int!
|
||||
totalPages: Int!
|
||||
}
|
||||
|
||||
type ExecutionEdge {
|
||||
node: Execution
|
||||
}
|
||||
|
||||
type ExecutionConnection {
|
||||
edges: [ExecutionEdge]
|
||||
pageInfo: PageInfo
|
||||
}
|
||||
|
||||
schema {
|
||||
query: Query
|
||||
mutation: Mutation
|
||||
|
Reference in New Issue
Block a user