Browse Source

Update client query fetch to better determine whether pagination is supported or not

master
Andrew Kingston 5 years ago
parent
commit
ee2a3515e8
  1. 5
      packages/client/src/utils/fetch/QueryFetch.js

5
packages/client/src/utils/fetch/QueryFetch.js

@ -6,8 +6,9 @@ import { get } from "svelte/store"
export default class QueryFetch extends DataFetch {
determineFeatureFlags(definition) {
const supportsPagination =
definition?.fields?.pagination?.type != null &&
definition?.fields?.pagination?.pageParam != null
!!definition?.fields?.pagination?.type &&
!!definition?.fields?.pagination?.location &&
!!definition?.fields?.pagination?.pageParam
return { supportsPagination }
}

Loading…
Cancel
Save