aboutsummaryrefslogtreecommitdiff
path: root/pages/queries/GET_MEDIA.js
diff options
context:
space:
mode:
Diffstat (limited to 'pages/queries/GET_MEDIA.js')
-rw-r--r--pages/queries/GET_MEDIA.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/pages/queries/GET_MEDIA.js b/pages/queries/GET_MEDIA.js
new file mode 100644
index 0000000..8c42a00
--- /dev/null
+++ b/pages/queries/GET_MEDIA.js
@@ -0,0 +1,26 @@
+import { gql } from "@apollo/client";
+
+export default gql`
+ query ($page: Int, $userId: Int, $type: MediaType, $status: MediaListStatus) {
+ Page(page: $page, perPage: 100) {
+ pageInfo {
+ hasNextPage
+ }
+ mediaList(type: $type, userId: $userId) {
+ status
+ score(format: POINT_100)
+ media {
+ siteUrl
+ id
+ coverImage {
+ large
+ extraLarge
+ }
+ title {
+ userPreferred
+ }
+ }
+ }
+ }
+ }
+`;