so I'm working with boolean data for when content is uploaded to Firestore.
var isBlue: Bool = false
I've structured my code for when isBlue
is false, I will not write the value to the database as I thought it's pretty useless and you get charged for writes.
So now I'm on to querying data, is it possible to query fields/keys that may not even exist to avoid & limit overhead?
I know I can do it on the client-side and filter data, however, this does result in unnecessary reads. Or would better practise be to just write each value to the database regardless if they're nil?