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

  • 10 February 2024
  • 0 replies

Badge +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]
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]

0 replies

Be the first to reply!