You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
762 B

  1. # ===============================================
  2. # ASSETS
  3. # ===============================================
  4. extend type Query {
  5. assets: AssetQuery
  6. }
  7. extend type Mutation {
  8. assets: AssetMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type AssetQuery {
  14. list(
  15. root: String
  16. kind: [AssetKind]
  17. ): [AssetItem]
  18. }
  19. # -----------------------------------------------
  20. # MUTATIONS
  21. # -----------------------------------------------
  22. type AssetMutation {
  23. upload(
  24. data: Upload!
  25. ): DefaultResponse
  26. }
  27. # -----------------------------------------------
  28. # TYPES
  29. # -----------------------------------------------
  30. type AssetItem {
  31. id: Int!
  32. }
  33. enum AssetKind {
  34. IMAGE
  35. BINARY
  36. }