Browse Source

add links on textref notes

Axolotle 2 years ago
parent
commit
56c6c8f2e7
1 changed files with 18 additions and 0 deletions
  1. 18 0
      src/api/fragments/NodeFull.gql

+ 18 - 0
src/api/fragments/NodeFull.gql

@@ -18,6 +18,24 @@ fragment NodeFull on MapItemInterface {
     notes {
       content: note
       number: numero
+
+      links: liens {
+        # FIXME probably need to query titles and stuff on `Textref` or `Creation`
+        id
+        type: __typename
+        variant: familles {
+          id
+        }
+
+        ... on Textprod {
+          parents: text_de_depart {
+            id
+            variant: familles {
+              id
+            }
+          }
+        }
+      }
     }
   }