br41nslug / directus-extension-randomized

An extension to get randomized results from directus.
MIT License
16 stars 5 forks source link

Error when using limit and the primary key field name is not 'id' #4

Open AlaaL opened 9 months ago

AlaaL commented 9 months ago

I have a collection when the primary key field is not 'id' but a custom name so when i apply a limit i get this error { "name": "DirectusError", "extensions": { "reason": "Invalid filter key \"id\" on \"ikuns\"" }, "code": "INVALID_QUERY", "status": 400 }

but there is no problem on another collections

br41nslug commented 9 months ago

correct this extension assumes your primary key is called "id"