-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
When using the CONTAINS in the query
The following error occurs:
error[E0599]: no method named `contains` found for reference `&helix_db::protocol::value::Value` in the current scope
The query works correctly when the CONTAINS condition is removed. This suggests that Value may not implement or expose a contains method compatible with the CONTAINS operator.
Steps to reproduce
query.hx
QUERY ExampleQuery(name: String) =>
result <- N<Users>::WHERE(_::{fullname}::CONTAINS(name))
RETURN resultschema.hx
N::Users {
fullname: String,
email: String,
created_at: Date
}Steps to Reproduce:
- Define the schema above.
- Create the query using the
CONTAINSoperator. - Build the project.
- Observe the compiler error
Version
2.0.5
Environment
Development/Local
Relevant log output
Dockerfile:31
--------------------
29 | COPY helix-repo-copy/ ./
30 | COPY helix-container/ ./helix-container/
31 | >>> RUN cargo build --package helix-container
32 |
33 | # Runtime image
--------------------
failed to solve: process "/bin/sh -c cargo build --package helix-container" did not complete successfully: exit code: 101Additional context
None
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working