Skip to content

[Bug]: edge with array property not working #512

@putt-t

Description

@putt-t

What happened?

rust error

Steps to reproduce

query

QUERY CreateFriendship (user1_id: ID, user2_id: ID) =>
    friendship <- AddE<Friends>({
        since: "2024-01-15",
        strength: 0.85,
        tags: ["college", "roommates"]
    })::From(user1_id)::To(user2_id)
    RETURN friendship

schema

E::Friends {
    From: User,
    To: User,
    Properties: {
        since: Date,
        strength: F64,
        tags: [String]
    }
}

Version

1.0.136

Environment

Development/Local

Relevant log output

Error compiling queries
└── Parse error:   --> 13:15
   |
13 |         tags: ["college", "roommates"]
   |               ^---
   |
   = expected anonymous_traversal, evaluates_to_anything, or create_field

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