Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape #. Not enough parameters passed to query error #403

Open
AndreasArvidsson opened this issue Jan 10, 2024 · 0 comments
Open

Escape #. Not enough parameters passed to query error #403

AndreasArvidsson opened this issue Jan 10, 2024 · 0 comments

Comments

@AndreasArvidsson
Copy link

AndreasArvidsson commented Jan 10, 2024

I ran into an issue where I got a Not enough parameters passed to query error when I tried to update a document where a field value contained hash. I know that jongo use hash for its query templating, but is there any way to escape it?

Example of the problem:
update("{id: 0}").with("{id: 0, message: '# hello, # world'}");

In practice this is a much larger and more complex object that is serialized at an earlier stage from a pojo so trying to rewrite it to fit the query templating is a bit tricky. If I could just do a replacement to escape the hashes that would be preferable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant