feat: add pagination on /flows

This commit is contained in:
Ali BARIN
2022-08-05 15:21:21 +02:00
parent 5a177b330a
commit 63241d2438
3 changed files with 54 additions and 10 deletions

View File

@@ -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
}
}
}
}
`;