Non empty values from Query all Records?
Options
![Georges Duverger](https://us.v-cdn.net/6037124/user_avatars/1709796.jpg)
Georges Duverger
Trusted Xano Expert ✭
I have a Query all Records function on a `users` table. In that `users` table, there is an optional `token` column of type `text`. I would like to return all the users who *have* a token. In other words, ignore users where `token` is null or empty. It seems pretty straightforward but, for some reason, I haven't been able to figure it out. Attached is my naïve attempt. Any pointers?
[xb4a-a0yo-esyv.n7.xano.io_admin_workspace_7_api_19_query_122 (1).png]
[xb4a-a0yo-esyv.n7.xano.io_admin_workspace_7_api_19_query_122 (1).png]
Comments
-
You actually don't need to put in those quotation marks at all, so it would look something more like this:
[Screenshot_2021-08-24_21-29-42.png]
For null, there is a constant null that you can access with the selector or by typing it in -
Excellent! It worked. So simple. Thank you, , for the prompt response. 🙏
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