NodeInitial.gql 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. parents: text_de_depart {
  13. id
  14. variant: familles {
  15. id
  16. }
  17. authors: auteurs {
  18. id
  19. name
  20. first_name
  21. last_name
  22. }
  23. preTitle: field_titre_regular
  24. title: field_titre_italique
  25. edition {
  26. name
  27. }
  28. }
  29. siblings: text_en_rebond {
  30. id
  31. variant: familles {
  32. id
  33. }
  34. }
  35. }
  36. ... on Textref {
  37. parents: text_de_depart {
  38. id
  39. variant: familles {
  40. id
  41. }
  42. }
  43. siblings: text_en_rebond {
  44. id
  45. variant: familles {
  46. id
  47. }
  48. }
  49. authors: auteurs {
  50. id
  51. name
  52. first_name
  53. last_name
  54. }
  55. preTitle: field_titre_regular
  56. italTitle: field_titre_italique
  57. edition {
  58. name
  59. }
  60. children: text_produits {
  61. id
  62. variant: familles {
  63. id
  64. }
  65. }
  66. creations: field_creations {
  67. id
  68. }
  69. }
  70. ... on Creation {
  71. parents: texte_de_depart {
  72. id
  73. variant: familles {
  74. id
  75. }
  76. }
  77. siblings: rebonds {
  78. id
  79. }
  80. authors: auteurs {
  81. id
  82. name
  83. first_name
  84. last_name
  85. }
  86. date {
  87. start
  88. # end
  89. }
  90. images {
  91. id
  92. url
  93. alt
  94. }
  95. title
  96. }
  97. }