image/svg+xml students REST /v2/users { users { id name reputation }} 1 * * 1 _____ * * * 1 type College { id: ID! name: String location: String rating: Float} type Student { id: ID! firstName: String lastName: String fullName: String email: String password: String college: College} type Query { test: String students: [Student] studentById(id: ID!): Student} Activités :1. Ouvrir leplayground1. essayerquery { students}2. essayerquery { college}et voir l'erreur const Query = { test: () => 'bonjour', students: () => db.students.list(), studentById: (root, args) => db.students.get(args.id)};const Student = { fullName: (root, args) => root.firstName + ":" + root.lastName, college: (root) => db.colleges.get(root.collegeId)} Query test studentById MPD Student fullName college 👆 👆 ⚠️ SQL : SELECT Col3 FROM MaTable 2012 2015 open   source   R Ahmed DIKOUK, Ka Lok TAMhttps://vincenttam.gitlab.io/presentation-de-graphql
1
  1. 1ere page
  2. Historique
  3. Comment marche GraphQL ?
  4. Un aller-retour en GraphQL
  5. REST vs GraphQL
  6. REST vs GraphQL (Overfetching)
  7. Pikachu
  8. Rappel resolveur
  9. Pourquoi schema ?
  10. schema exemplaire
  11. resolveur exemple
  12. resolveur root
  13. Schema et Query
  14. Arguments
  15. Alias
  16. Fragment
  17. Variable
  18. Variable avec diapo 2
  19. Interface
  20. opération de mutation
  21. opération souscription