Skip to content

Commit

Permalink
yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Oct 10, 2022
1 parent 34969e6 commit 9028496
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/pages/docs/config/lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ Options:
- `description` (default: `undefined`): Sets the description of the associated GraphQL type in the generated GraphQL API documentation.
Overrides the list-level `description` config option.
- `plural`: (default: Pluralised list key, e.g. `'Users'`): Overrides the name used in multiple mutations and queries (e.g. `users()`, `updateUsers()`, etc).
{% if $nextRelease %}
{% if $nextRelease %}
- `maxTake` (default: `undefined`): Allows you to specify the maximum `take` number for query operations on this list in the GraphQL API.
{% /if %}
{% /if %}
- `cacheHint` (default: `undefined`): Allows you to specify the [dynamic cache control hints](https://www.apollographql.com/docs/apollo-server/performance/caching/#in-your-resolvers-dynamic) used for queries to this list.
- `omit` (default: `undefined`): Allows you to configure which parts of the CRUD API are autogenerated for your GraphQL API.
This option accepts either `true`, or an array of the values `query`, `create`, `update`, or `delete`.
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/admin-ui/system/createAdminMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ export function createAdminMeta(
].slice(0, 3);
}

const maximumPageSize = Math.min(listConfig.ui?.listView?.pageSize ?? 50, (list.types.findManyArgs.take.defaultValue ?? Infinity) as number);
const maximumPageSize = Math.min(
listConfig.ui?.listView?.pageSize ?? 50,
(list.types.findManyArgs.take.defaultValue ?? Infinity) as number
);
adminMetaRoot.listsByKey[key] = {
key,
labelField,
Expand Down

0 comments on commit 9028496

Please sign in to comment.