feat: add pagination on /flows
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const GET_FLOWS = gql`
|
||||
query GetFlows($appKey: String) {
|
||||
getFlows(appKey: $appKey) {
|
||||
id
|
||||
name
|
||||
query GetFlows($limit: Int!, $offset: Int!, $appKey: String) {
|
||||
getFlows(limit: $limit, offset: $offset, appKey: $appKey) {
|
||||
pageInfo {
|
||||
currentPage
|
||||
totalPages
|
||||
}
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user