diff --git a/packages/notion-client/src/notion-api.ts b/packages/notion-client/src/notion-api.ts index 8cfdc308..477ee0e2 100644 --- a/packages/notion-client/src/notion-api.ts +++ b/packages/notion-client/src/notion-api.ts @@ -568,11 +568,18 @@ export class NotionAPI { reducers: { [reducerLabel]: { type: 'groups', + version: 'v2', groupBy, ...(collectionView?.query2?.filter && { filter: collectionView?.query2?.filter }), - groupSortPreference: groups.map((group: any) => group?.value), + groupSortPreference: groups.map((group: any) => ({ + property: group?.property, + value: { + type: group?.value?.type, + value: group?.value?.value + } + })), limit }, ...reducersQuery