[GRAPHQL] Unions and interfaces (ok)
https://www.apollographql.com/docs/apollo-server/schema/unions-interfaces/
union Media = Book | Movietype Query {
allMedia: [Media] # This list can include both Books and Movies
}union Result = Book | Author
type Book {
title: String
}
type Author {
name: String
}
type Query {
search(contains: String): [Result]
}Last updated