Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlaaL opened this issue Feb 21, 2024 · 1 comment
Open

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

AlaaL opened this issue Feb 21, 2024 · 1 comment

Comments

@AlaaL
Copy link

AlaaL commented Feb 21, 2024

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
Copy link
Owner

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

@AlaaL AlaaL closed this as completed Feb 24, 2024
@br41nslug br41nslug reopened this Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants