Explorar o código

added fields to gql entite.fragment

bach %!s(int64=2) %!d(string=hai) anos
pai
achega
b551daa561
Modificáronse 1 ficheiros con 34 adicións e 12 borrados
  1. 34 12
      src/api/gql/entite.fragment.gql

+ 34 - 12
src/api/gql/entite.fragment.gql

@@ -1,19 +1,41 @@
 fragment EntiteFields on Entite {
-  id
-  texte
+  action
+  menacemaintien
   title
-  liens {
-    title
-    url
-  }
-  images {
-    url
-    alt
-  }
-  fichiers {
+  sources {
     description
-    file {
+    images {
+      alt
       url
     }
+    liens {
+      title
+      url
+    }
+    documents {
+      description
+      file {
+        filemime
+        filename
+        url
+        filesize
+      }
+    }
+    videos {
+      url
+    }
+    date {
+      start
+      end
+    }
+    audios {
+      description
+      file {
+        filemime
+        filename
+        filesize
+        url
+      }
+    }
   }
 }