NodeInitial.gql 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # This fragment queries some elementary data to define the content structure
  2. fragment NodeInitial on MapItemInterface {
  3. id
  4. type: __typename
  5. # type: bundle
  6. ... on TextInterface {
  7. variant: familles {
  8. id
  9. }
  10. }
  11. ... on Textprod {
  12. preTitle: field_titre_regular
  13. italTitle: field_titre_italique
  14. authors: auteurs {
  15. id
  16. name
  17. first_name
  18. last_name
  19. }
  20. parents: text_de_depart {
  21. id
  22. variant: familles {
  23. id
  24. }
  25. authors: auteurs {
  26. id
  27. name
  28. first_name
  29. last_name
  30. }
  31. preTitle: field_titre_regular
  32. title: field_titre_italique
  33. edition {
  34. name
  35. }
  36. }
  37. siblings: text_en_rebond {
  38. id
  39. variant: familles {
  40. id
  41. }
  42. }
  43. }
  44. ... on Textref {
  45. parents: text_de_depart {
  46. id
  47. variant: familles {
  48. id
  49. }
  50. }
  51. siblings: text_en_rebond {
  52. id
  53. variant: familles {
  54. id
  55. }
  56. }
  57. authors: auteurs {
  58. id
  59. name
  60. first_name
  61. last_name
  62. }
  63. preTitle: field_titre_regular
  64. italTitle: field_titre_italique
  65. edition {
  66. name
  67. }
  68. children: text_produits {
  69. id
  70. variant: familles {
  71. id
  72. }
  73. }
  74. creations: field_creations {
  75. id
  76. }
  77. }
  78. ... on Creation {
  79. parents: texte_de_depart {
  80. id
  81. variant: familles {
  82. id
  83. }
  84. }
  85. creation_siblings: rebonds {
  86. id
  87. }
  88. authors: auteurs {
  89. id
  90. name
  91. first_name
  92. last_name
  93. }
  94. date {
  95. start
  96. # end
  97. }
  98. images {
  99. id
  100. url
  101. alt
  102. }
  103. title
  104. }
  105. }