You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone,
I'm meeting a problem setting the primary key of my user model.
The response I receive from backend is formated as { data: {...}, meta: {...} }, so the id is at data.id.
I tried to make something like:
// models/User.jsprimaryKey(){return'data.id'}
But it can't manage to find the id, any suggestion ?
The text was updated successfully, but these errors were encountered:
Hey everyone,
I'm meeting a problem setting the primary key of my user model.
The response I receive from backend is formated as
{ data: {...}, meta: {...} }
, so the id is atdata.id
.I tried to make something like:
But it can't manage to find the id, any suggestion ?
The text was updated successfully, but these errors were encountered: