Basic not_empty filter question
Options
![Josh Chambers](https://us.v-cdn.net/6037124/user_avatars/4202792.jpg)
Josh Chambers
Member ✭
I'm using an add on to output an object array.
I'm attempting to create a new variable that includes only results for which the addon object array is not empty.
I attempted to use dot notation and "not_empty" filtering, but can't seem to accomplish this.
Here is a paired down output of what I'm getting. I'd like to exclude user_id: 4 from my results, because that user does not have any notes (_notes_of_user).
Thanks!
{
user_id: 4,_notes_of_user: []},
{
user_id: 7,_notes_of_user: [
{id: 1,note: Example
}]},
I'm attempting to create a new variable that includes only results for which the addon object array is not empty.
I attempted to use dot notation and "not_empty" filtering, but can't seem to accomplish this.
Here is a paired down output of what I'm getting. I'd like to exclude user_id: 4 from my results, because that user does not have any notes (_notes_of_user).
Thanks!
{
user_id: 4,_notes_of_user: []},
{
user_id: 7,_notes_of_user: [
{id: 1,note: Example
}]},
Comments
-
Can you show us screenshots of your function stack? This should work if done correctly.
-
Thanks, Michael. I think, perhaps, what I was doing was selecting the wrong path in the not_empty filter. Instead of using a text input and just labeling the path itself (_notes_of_user), I may have been using the variable with dot notation (push_granted._notes_of_user).
Attached is what I'm using now. I believe it is working now. Is this the correct way of doing this? -
it looks like the image posted is broken for me
can you try again?
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