users/me endpoint to fetch all the data of the current user (learned about that in this dicussion).
The problem is that I added data to the
User collection type, but that custom field is not being fetched by the
GET /users/me end point.
More details of my problem:
Basically I created a
many to many relationship between users and restaurants. Not all users have access to all restaurants (they are administrators). So I added a field to act like a role, now the user is allowed to edit all of the restaurants that are linked to it.
I would like to fetch that data with the
/users/me end point, but is only returning the default data, and not my new
Am I doing it right? Do I have to make two requests to get all the data about the current user?
Thanks for the help!
(created a discussion on Github before knowing the existance of this forum)