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

Retrieve properties of Relationship #211

Open
HOKINGLOK opened this issue Apr 8, 2022 · 0 comments
Open

Retrieve properties of Relationship #211

HOKINGLOK opened this issue Apr 8, 2022 · 0 comments

Comments

@HOKINGLOK
Copy link

Hi all, does anyone find how to retrieve value of properties of relationships? I have defined the relationshipProperties in the graphql schema like:
type Person {
name: String!
born: Int!
actedInMovies: [Movie!]! @relationship(type: "ACTED_IN", properties: "ActedIn", direction: OUT)
directedMovies: [Movie!]! @relationship(type: "DIRECTED", direction: OUT)
}

type Movie {
title: String!
released: Int!
actors: [Person!]! @relationship(type: "ACTED_IN", properties: "ActedIn", direction: IN)
director: Person! @relationship(type: "DIRECTED", direction: IN)
}

interface ActedIn @relationshipProperties {
roles: [String!]
}
But do not know how to write query to retrieve the value of "roles".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant