Skip to content

[Bug]: Get vector by ID not working #433

@putt-t

Description

@putt-t

What happened?

rust panic

Steps to reproduce

queries.hx:

QUERY addUser(name: String, age: U8) => 
    user <- AddN<User>({name: name, age: age})
    RETURN user

QUERY getVectorbyID(vectorID: ID) =>
    vector <- V<Bio_Embedding>(vectorID)
    RETURN vector

schema.hx

N::User {
    name: String,
    age: U8
}

V::Bio_Embedding {
    content: String
}

E::User_to_Bio_Embedding {
    From: User,
    To: Bio_Embedding
}

Version

1.0.136

Environment

Development/Local

Relevant log output

⢹ Compiling Helix queries
thread 'main' panicked at helix-db/src/helixc/analyzer/methods/traversal_validation.rs:288:36:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: abort      helix deploy

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions