This repository is used to reproduce an issue
The issue appears when the model is defined with a composite primary key (more than one primary key). When a GET request is made to the REST API, parameter "total" in the response may not be the actual number of items in the table.
The application seems to behave as if only one primary key is used to differentiate items and count the total number of elements in the table.
- adapter: Sequelize
- database: Postgres
Tests can be run with docker compose run test-runner
.
These tests are written in
test/services/my-service.test.js
.