소스 검색

add generic text field fragment

axolotle 3 년 전
부모
커밋
5fc3c01f14
1개의 변경된 파일42개의 추가작업 그리고 0개의 파일을 삭제
  1. 42 0
      src/api/fragments/TextFields.gql

+ 42 - 0
src/api/fragments/TextFields.gql

@@ -0,0 +1,42 @@
+#import "./TextCardFields.gql"
+
+fragment TextFields on TextInterface {
+  ...TextCardFields
+
+  ... on Textref {
+    tags {
+      id
+      name
+    }
+    strangeness: degres_detrangement
+    notes {
+      content: note
+      number: numero
+    }
+  }
+
+  ... on Textprod {
+    tags: tagsprod {
+      id
+      name
+    }
+    notes {
+      content: note
+      number: numero
+      links: liens {
+        id
+        bundle
+        title
+        families: familles {
+          id
+          name
+        }
+        # field_titre FIXME ?
+        authors: auteurs {
+          id
+          name
+        }
+      }
+    }
+  }
+}