Skip to main content

How to show edge source properties stored in separate type using GraphQL query [Community Contributed]


Forum|alt.badge.img+4

In the below GraphQL schema actors [Person] edge properties (role, compensation) are captured in ActedIn type. How to get edge properties of the Actor stored in separate type using GraphQL query.

 

type Movie {
title: String
actors: [Person]
@relation(
edgeSource: "ActedIn"
type: { space: "imdb", externalId: "HAS_ACTOR" }
direction: OUTWARDS
)
director: Person
}

type Person {
name: String!
}

type ActedIn @edge {
role: String
compensation: Float
metadata: JSONObject
lines: [String]
}

Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings