How to find all rows that is not it array
![voinn_a](https://us.v-cdn.net/6037124/uploads/userpics/0T2BIGAL9BBU/nKDC87CBFPFEQ.jpg)
Greetings.
I run a query on a table that filters and displays an array of id.
After doing this, I feed the matched_users
variable into the not in filter :
and get the following error:ParseError: "Users.id" not in [{"receiver_id":6}], message=Type mismatch.
Thank you for your help!
Answers
-
You are trying to compare an integer (
Users.id
) to an object (an item ofmatched_users
array). You should update thematched_users
array extracting the values to get rid of the objects leaving only the integers. Use theGetValue
function to do so.By the way, why don't you just run one
QueryAllRecords
by joining theUsers
andMatching_Status
tables and then perform the custom query directly with the fields you need from both tables? Doing so you won't need thematched_users
variable.
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