Skip to content

query untyped relationships #148

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().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions