Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query untyped relationships #148

Open
CrystalMethod opened this issue Oct 15, 2014 · 0 comments
Open

query untyped relationships #148

CrystalMethod opened this issue Oct 15, 2014 · 0 comments
Assignees
Milestone

Comments

@CrystalMethod
Copy link
Contributor

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

@CrystalMethod CrystalMethod changed the title untyped relatationships query untyped relationships Oct 28, 2014
@DirkMahler DirkMahler added this to the 0.5.0 milestone Apr 21, 2015
@DirkMahler DirkMahler self-assigned this Apr 21, 2015
DirkMahler added a commit that referenced this issue Apr 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants