Skip to content

Support embedded documents in Gremlin #1044

Closed

Description

@lvca
No description provided.

Activity

  1. self-assigned this
    on Apr 18, 2023
  2. added
    enhancement
    on Apr 18, 2023
  3. added this to the 23.4.1 milestone on Apr 18, 2023
  4. lvca commented on Apr 18, 2023

    @lvca
    MemberAuthor

    Now this works:

    ArcadeVertex v = graph.addVertex("Customer");
    
    v.property("name", UUID.randomUUID().toString());
    
    VertexProperty<EmbeddedDocument> address = v.embed("residence", "Address");
    address.property("street", "Via Roma, 10");
    address.property("city", "Rome");
    address.property("country", "Italy");
    
    
    ResultSet result = graph.gremlin("g.V().hasLabel('Customer')").execute();
    String country = result.next().getProperty(“residence").getString("country");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions