Zendro-dev / graphql-server-model-codegen

Command line utility to auto-generate the structure files for a graphql server
MIT License
1 stars 2 forks source link

Issue142 refactor read many merge master+m #157

Closed coeit closed 4 years ago

coeit commented 4 years ago

Issues

Closes #142 Closes #145

Description

This PR implements the refactoring of the readAll and readAllCursor functions in sql, sql-adapter and generic models (#142 ). Furthermore it implements the necessary changes to make pagination a required argument in the readMany functions mentioned above.

related PRs

Blocks

None

Changelog

codegen

skeleton

// Generic cursorPaginationArgumentsToGeneric(search, pagination, orderOptions, idAttribute) buildCursorBasedGenericOptions(search, order, pagination, idAttribute) buildOppositeSearchGeneric(search, order, pagination, idAttribute)



* rename `checkCountAndReduceRecordLimitHelper` to `checkCountAndReduceRecordsLimit`

### documentation
* added documentation on cursor-based-pagination argument
* added mandatory pagination argument to all places in the docu where needed