aboutsummaryrefslogtreecommitdiff
path: root/queries/GET_MEDIA.js
blob: 8c42a00285bb0a3e64cb1390c2a1f795abb98b1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
          }
        }
      }
    }
  }
`;