Skip to content

Is it possible to use Where parameter operations in QueryBuilder? #92

@Ansis100

Description

@Ansis100

When using any operators in QueryBuilder, Neogma outputs the following error:

NeogmaConstraintError: The only operator which is supported for object mode is "eq"

I noticed that QueryBuilder uses exclusively getStatement('object') to parse the where parameters, which causes the error.

nodeParts.push(inner.getStatement('object'));

Is this just a limitation of QueryBuilder or am I missing something?

P.S. Here's an example of my attempt at using operators:

.match({
  related: [
    // ...
    {
      // ...
      where: { value: { [Op.contains]: 'foo' } },
    }
  ],
})
// ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions