Get the records only belonging to a specific user
Hi everyone,
I'm quite new on using Xano and I'm struggling on set up an API to get all records belonging to a specific user.
I've a 3 tables on my DB (user, workspace and content)
Every user, after signing up, have to create a workspace to start creating a content.
Every workspace can have multiple users (ideally with multiple roles but not my focus ATM)
Content belongs to a workspace (and so to a sigle user).
This is my API endpoint to GET all the workspace related to an user and the error message I got.
user authentication required is ON
BY JOIN
workspace.users_user_id (workspace_users_user_id) via inner join
BY CUSTOM QUERY
auth:id in db:workspace.users_user_id
RESULT
{
message: ParseError: 2 in "workspace_users_user_id", message=Array is required for 2nd operand. }
Here some screenshots
Thank you in advance for your help .
Alessandro
Comments
-
Switch your operator to an EQUALS instead of IN 😊
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback