whereString property
The String representation of the where condition.
If you want to query Conversation by Conversation.id, can set it like this:
query.whereString = jsonEncode({
'objectId': conversationID,
});
Important:
If you set this value, it will overwrite the condition you set with where method, like ConversationQuery.whereEqualTo and so on.
The default value is '{"m": clientID}'
, the clientID
is ConversationQuery.client.id
, it means Conversation.members contains clientID
.
Implementation
String? whereString;