From 1fcdd9f7d859b925bf92265f441655d5522e351c Mon Sep 17 00:00:00 2001 From: Factiven Date: Tue, 11 Apr 2023 23:23:29 +0700 Subject: initial commit --- queries/GET_MEDIA.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 queries/GET_MEDIA.js (limited to 'queries/GET_MEDIA.js') diff --git a/queries/GET_MEDIA.js b/queries/GET_MEDIA.js new file mode 100644 index 0000000..8c42a00 --- /dev/null +++ b/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 + } + } + } + } + } +`; -- cgit v1.2.3