Skip to content

Formatter produces error when using full-text index  #93

@Dimibe

Description

@Dimibe

Hello,

I came across the problem that I use a full-text index search (db.index.fulltext.queryNodes) in my query.
The function returns a node and score variable, e.g.

CALL db.index.fulltext.queryNodes('userNames', ('*' + $text + '*')) YIELD node AS user, score

The problem is that the formatter of this plugin identifies the word node as a keyword and reformats the code to:

CALL db.index.fulltext.queryNodes('userNames', ('*' + $text + '*')) YIELD NODE AS user, score

With that, the query throws an exception because the variable must be named node and not NODE.
Would it be possible to not reformat the word node to uppercase?

See also: Full-text indexes

Thanks in advance.

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