Boolean being read as a text

Options

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!

Tagged:

Best Answer

  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Answer ✓
    Options

    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

  • Jswan
    Jswan Member
    Options

    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