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

custom id return 'undefined' #46

Closed
taufiqurrohmansuwarto opened this issue Jun 5, 2019 · 1 comment
Closed

custom id return 'undefined' #46

taufiqurrohmansuwarto opened this issue Jun 5, 2019 · 1 comment

Comments

@taufiqurrohmansuwarto
Copy link

set custom id in service options

const options = {
model: Model,
id : 'my_own_custom_id', // auto increment
paginate
};

do post request at that service

error: NotFound: No record found for id 'undefined'

@taufiqurrohmansuwarto
Copy link
Author

im adding static get idColumn(){
return 'my_own_custom_id';
} in my model.

problem solved.

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

1 participant