materio_extension.base.graphqls 523 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. type Mutation
  2. scalar Violation
  3. type Materiau {
  4. id: Int!
  5. uuid: String!
  6. title: String!
  7. author: String
  8. memo: String
  9. linked_materials: [Materiau]
  10. images: [Image]
  11. }
  12. type MateriauResponse implements Response {
  13. errors: [Violation]
  14. materiau: Materiau
  15. }
  16. interface Response {
  17. errors: [Violation]
  18. }
  19. input MateriauInput {
  20. title: String!
  21. description: String
  22. }
  23. type Image {
  24. id: Int!
  25. url: String!
  26. alt: String
  27. style_minicard: ImageStyle
  28. }
  29. type ImageStyle {
  30. width: Int
  31. height: Int
  32. url: String
  33. }