Comments (2)
Version 2.3.0 now supports composite primary keys with primaryKeyField: ['key1', 'key2']
. Enjoy!
from sequelize-cursor-pagination.
With composite primary keys, you can have one of the keys as the primaryKeyField
and other should be present in the order
. The primaryKeyField
option is used to ensure that table's primary key is in the order
(see here). Because at the moment the primaryKeyField
option doesn't support composite primary keys you'll have to include it in the order
per query basis.
from sequelize-cursor-pagination.
Related Issues (20)
- Can't handle one-to-many HOT 1
- On sequelize model option Paranoid: true, cursor generating different query. HOT 1
- totalCount? HOT 1
- Add UUID support HOT 1
- multiple order generates invalid query HOT 2
- Add support for HAVING clause HOT 1
- Add support for GROUP BY clause HOT 1
- UUID PK and order generates unwanted results HOT 1
- ` after: pagination.cursors.after` in the option always throw error "pagination was use before it was defined" HOT 1
- Incorrect comparison of primary key breaks pagination of common values
- Option to override ordering parameters HOT 4
- Support ordering on associated models HOT 2
- Pagination of relations? HOT 7
- Module '"sequelize"' has no exported member 'Attributes'. HOT 1
- Support ordering with DESC / ASC NULL FIRST HOT 1
- Using "group" option HOT 13
- Support custom model method name other than 'paginate' HOT 1
- Add option to disable count HOT 1
- Include the before/after cursor record in the returned edges list.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sequelize-cursor-pagination.