From 482b1c8db5cfeaa20d75ce92fcb10f3ca8433633 Mon Sep 17 00:00:00 2001 From: Factiven Date: Fri, 14 Apr 2023 00:07:02 +0700 Subject: Update 5th --- pages/queries/GET_MEDIA.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pages/queries/GET_MEDIA.js (limited to 'pages/queries/GET_MEDIA.js') 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 + } + } + } + } + } +`; -- cgit v1.2.3