SHARE
TWEET

Untitled

a guest Jan 20th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum Genre{
  2.   Drama
  3.   Comedia
  4.   SciFi
  5.   Horror
  6. }
  7.  
  8. scalar Year
  9. scalar Url
  10.  
  11. interface Person {
  12.   id:ID!
  13.   name:String!
  14.   male:Boolean
  15. }
  16.  
  17. type Actor implements Person{
  18.   id:ID!
  19.   name:String!
  20.   male:Boolean
  21.   profileUrl:Url
  22. }
  23.  
  24. type Character {
  25.   actor: Actor!
  26.   name:String!
  27. }
  28.  
  29. type Director implements Person{
  30.   id:ID!
  31.   name:String!
  32.   male:Boolean
  33. }
  34.  
  35. type Movie{
  36.   id:ID!
  37.   title(country:String="Spain"):String!
  38.   year:Year
  39.   genre:Genre
  40.   director: Director!
  41.   characters:[Character!]!
  42.   audience:Int
  43.   boxOffice:Float
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top