Forked from tibotiber/prisma-interface.graphql
Last active
November 19, 2018 20:59
-
-
Save katesclau/1595d3a4c082c2f9392a8f2f60113773 to your computer and use it in GitHub Desktop.
Presents a different approach on how to implement Interfaces with Prisma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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