Two related tables: Users and Properties - API setup question
![Matt](https://us.v-cdn.net/6037124/uploads/userpics/S9IH7C4NYFWD/nWSW4BEIKQEDA.jpg)
Properties table contains a field that allows multiple user IDs.
When I attempt to get all records under the Properties table where the User ID is present in this field, it only returns a single record (even though there are three).
This is probably something to do with my response/output, but I need a little guidance.
Comments
-
Hi,
First I would check if the query is not set to single insead of a list in output tab of a query.
Can you show a bit more? For example you custom query conditions and how the table looks like?
-
Yes, my Output for the API shows "list" here.
Generally I'm trying to use the User ID of the person who's authenticated to pull from the properties field, where that user ID is present. This particular field allows for multiple users as shown in my original post. -
Quick update.
This might have been a user error - I'm actually getting the responses according to the database. Maybe I overlooked that for the user I was testing, there was only one related record.
Good news is we can consider this resolved! Thanks for the help, too.
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