If my pk is a UUID and I add an order field the returned data is not what is should be (see examples).
I am aware that I could simply override the pk field on model initialisation, but I am using the auto import that comes with sequelize-cli (rewriten in es8 syntax) which makes that almost impossible.
in the example below the 'sonarrId' field is added to the order table. I am using graphql as the data fetcher so thats why the data is restructured (it should however still be clear what is happening)
Starting from version 2.4.0 you can use omitPrimaryKeyFromOrder option to omit the primary key from the order. Feel free to create a new issue if it doesn't solve your issue.
Hi,
If my pk is a UUID and I add an order field the returned data is not what is should be (see examples).
I am aware that I could simply override the pk field on model initialisation, but I am using the auto import that comes with sequelize-cli (rewriten in es8 syntax) which makes that almost impossible.
If I can help in any way let me know!
~/database/models/index.js
Examples
in the example below the 'sonarrId' field is added to the order table. I am using graphql as the data fetcher so thats why the data is restructured (it should however still be clear what is happening)
Results without cursor:
Result with cursor (cursor of element 'sonarrId = 2')
Expected result