parse-community / Parse-Swift

The Swift SDK for Parse Platform (iOS, macOS, watchOS, tvOS, Linux, Android, Windows)
https://parseplatform.org
MIT License
307 stars 69 forks source link

Bool query not working... #282

Closed LilMoke closed 2 years ago

LilMoke commented 2 years ago

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: https://github.com/parse-community/Parse-Swift/pull/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

Server

Database

Logs

parse-github-assistant[bot] commented 2 years ago

Thanks for opening this issue!

cbaker6 commented 2 years ago

Can you fill out the whole template?

LilMoke commented 2 years ago

ok, updated

cbaker6 commented 2 years ago

There seems to not be a problem with this from my testing and probably something wrong with how you are saving your objects. See response here: https://community.parseplatform.org/t/parseswift-query-question/2180/9?u=cbaker6

cbaker6 commented 2 years ago

Closing via response here: https://community.parseplatform.org/t/parseswift-query-question/2180/11?u=cbaker6