Skip to content

Instantly share code, notes, and snippets.

@katesclau
Forked from tibotiber/prisma-interface.graphql
Last active November 19, 2018 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katesclau/1595d3a4c082c2f9392a8f2f60113773 to your computer and use it in GitHub Desktop.
Save katesclau/1595d3a4c082c2f9392a8f2f60113773 to your computer and use it in GitHub Desktop.
Presents a different approach on how to implement Interfaces with Prisma
type ICharacter {
# interface
id: ID!
name: String!
friends: [Character]
appearsIn: [Episode]!
# any custom fields inside JSON
implemented: String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment