Skip to content

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

@AndreasArvidsson

Description

@AndreasArvidsson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions