I cant find any documentation of what types of queries doesn’t work when used as live queries. My experience is also that I won’t get any kind of error when I unintentionally create a query that will not work as expected when used as a live query.
Here is an example:
export async function subscribeToMessagesFromChats(chats, includeOwnMessages){
const query = new parse.Query('ChatMessage');
if(!includeOwnMessages){
console.log('subscription to msgs without my own messages');
const user = parse.User.current();
query.notEqualTo('author', user);
}
query.containedIn('chat', chats);
return query.subscribe();
}
This subscription will trigger for all messages. Even the ones that has the logged in user as ‘author’. Why?
Grateful for any help!