question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: invalid comparisonRight

See original GitHub issue

Hey!

My App started to show an error when I trying to update or create a post in Watermelon. I am creating a white label Rocket Chat, that use the DB.

The code where the error occurred:

await db.action(async() => {
	try {
		const pollOptionVote = await pollOptionVoteCollection.find(data.id);
		await pollOptionVote.update(protectedFunction((p) => {
			Object.assign(p, data);
		}));
	} catch (error) {
		await pollOptionVoteCollection.create(protectedFunction((p) => {
			p._raw = sanitizedRaw({ id: data.id }, pollOptionVoteCollection.schema);
			Object.assign(p, data);
		}));
	}
});

I tried to change all the code, but doesn’t have succeeded.

This become after I created a component who make a subscribe in same table.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
paul-rchdscommented, Jun 2, 2021

Hi there, I am getting this same error. How did you resolve it?

0reactions
KrisLaucommented, Jun 16, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid comparison type... wat : r/gamemaker - Reddit
This gives an error "Invalid comparison type". I tried changing the value of array[0] and checking for that, it gives the same error....
Read more >
Error: Invalid comparisonRight #1185
Error: Invalid comparisonRight #1185. Not sure why one specific prepareCreate is not working in my code. It looks like this:
Read more >
R-net Error Code List with Remedies - StudyLib
R-net Error Code List with Remedies Error ID Error Name 0001 0200 0203 Memory ... Comparison Right Error Joystick Error Dual Path Comparison...
Read more >
Invalid Pattern String - Daily Dose of Excel
I just came across an “Invalid Pattern String” error while use the Like keyword to fill a listbox. I thought Like was more...
Read more >
SQL Grammar - H2 Database Engine
Quantified Comparison Right Hand Side Null Predicate ... A literal value of any data type, or null. ... UNKNOWN is a NULL value...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found