materio_extension.base.graphqls 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. scalar Violation
  2. type Materiau {
  3. id: Int!
  4. uuid: String!
  5. title: String!
  6. author: String
  7. body: String
  8. short_description: String
  9. linked_materials: [Materiau]
  10. linked_articles: [Article]
  11. images: [Image]
  12. videos: [VideoLink]
  13. tags: [Tag]
  14. thesaurus: [Thesaurus]
  15. memo: String
  16. attachments: [Filefield]
  17. # distributor:
  18. # manufacturer:
  19. # famille:
  20. # index:
  21. # reference:
  22. # samples:
  23. }
  24. type Article {
  25. id: Int!
  26. uuid: String!
  27. title: String!
  28. author: String
  29. body: String
  30. linked_materials: [Materiau]
  31. images: [Image]
  32. videos: [VideoLink]
  33. source: Link
  34. showroom: Showroom
  35. tags: [Tag]
  36. thesaurus: [Thesaurus]
  37. date: Date
  38. memo: String
  39. }
  40. type Filefield {
  41. file: File!
  42. description: String
  43. }
  44. type File {
  45. fid: String!
  46. uuid: String!
  47. filename: String!
  48. filemime: String!
  49. filesize: String!
  50. url: String!
  51. }
  52. type Link {
  53. url: String
  54. title: String
  55. }
  56. type Showroom {
  57. id: Int!
  58. uuid: String!
  59. name: String!
  60. images: [Image]
  61. # email: String
  62. # address: Adress
  63. # phone: String
  64. }
  65. type Tag {
  66. id: Int!
  67. uuid: String!
  68. name: String!
  69. }
  70. type Thesaurus {
  71. id: Int!
  72. uuid: String!
  73. name: String!
  74. }
  75. type Date {
  76. start: String
  77. end: String
  78. }
  79. type VideoLink {
  80. url: String
  81. }
  82. type Image {
  83. id: Int!
  84. url: String!
  85. alt: String
  86. style_minicard: ImageStyle
  87. style_cardmedium: ImageStyle
  88. style_cardfull: ImageStyle
  89. style_articlecardmedium: ImageStyle
  90. }
  91. type ImageStyle {
  92. width: Int
  93. height: Int
  94. url: String
  95. }