Boolean being read as a text
Options
Jswan
Member ✭
Hey folks!
I'm having a simple types issue in the Function stack. I've got a boolean type “isAcceptingSubmissions” that shows up as a text type in the API.
Boolean in Database:
In Debugger:
But it is a “text” type when querying the database:
Is this a bug?
Thanks so much for your help!
Best Answer
-
The field name is always a string. It's the value that gets treated differently for different types. I think if you ignore that weird message in the last screenshot it works. But if not, please post what you see so we in the community can help!
Answers
-
Ah I see - you're very right. And unreasonably speed :) Thank you!
If I ignored the warning sign and just ran it regardless, I got the right data. Cheers
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