Skip to content

Bool query not working... #282

Closed
Closed
@LilMoke

Description

@LilMoke

New Issue Checklist

Issue Description

I can do this: Word.query(WordKey.word == “Some Text”) and it works (string compare)
I can so this: Word.query(WordKey.wordOrder < 8) and it works (int)
But this does not: Word.query(WordKey.isWordNeeded == true) Bool fields do not seem to work, it always return a 0 result set

Is there something special with a bool that I am missing?

Could this be related to this issue: #49

Steps to reproduce

Create a query as follows:
@ObservedObject var wordsWordViewModel = Word.query(WordKey.isWordNeeded == true)
.order([.descending("word")])
.viewModel

Actual Outcome

0 records are return even though several exist with the a bool value of true

Expected Outcome

several records to be returned in the result set

Environment

Heroku Server

Client

  • Parse Swift SDK version: 2.2.5
  • Xcode version: 13.1
  • Operating system (iOS, macOS, watchOS, etc.): iOS
  • Operating system version: mac OS Monterey 12.0.1

Server

  • Parse Server version: 4.10.1
  • Operating system: Ubuntu 18.04
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Heroku

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version:
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): MongoDB

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions