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

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

Open
Ansis100 opened this issue Jan 23, 2024 · 0 comments
Open

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

Ansis100 opened this issue Jan 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ansis100
Copy link
Contributor

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' } },
    }
  ],
})
// ...
@themetalfleece themetalfleece added the bug Something isn't working label Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants