#pagination disabled

2 messages · Page 1 of 1 (latest)

karmic rapidsBOT
grand sparrow
#

Hello everyone! Could someone please tell me how to disable pagination in a collection?
All I found in the documentation:
For find operations within the Local API, you can disable pagination to retrieve all documents from a collection by passing pagination: false to the find local operation.
The only thing that worked:

afterOperation: [
            async ({ operation, result }) => {
                if (operation === 'find' && result?.docs) {
                    return result.docs;
                }
                return result;
            },
        ],