Skip to content

query untyped relationships #148

@CrystalMethod

Description

@CrystalMethod

Given a simple data model as follows:

interface Person {
    Collection<Person> getFriends()
}

and a Cypher Query

MATCH ()-[r]->() RETURN r

or Gremlin Query

g.V.outE()

an XOException will be thrown

Cannot resolve relation from discriminator 'FRIENDS'

what is absolutely right because the relationship is untyped. But I wonder if it wouldn't be better to return some kind of "untyped relationship" object that only contains getId() and possibly getFrom() and getTo().

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions