Files
suwayomi-material-you-webui/src/lib/graphql/queries/TrackerQuery.ts

47 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-02-16 19:55:54 +01:00
/*
* Copyright (C) Contributors to the Suwayomi project
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import gql from 'graphql-tag';
2024-03-10 17:36:22 +01:00
import { FULL_TRACKER_FIELDS, PAGE_INFO } from '@/lib/graphql/Fragments.ts';
2024-02-16 19:55:54 +01:00
export const GET_TRACKERS = gql`
${PAGE_INFO}
2024-03-10 17:36:22 +01:00
${FULL_TRACKER_FIELDS}
2024-02-16 19:55:54 +01:00
query GET_TRACKERS {
trackers {
totalCount
pageInfo {
...PAGE_INFO
}
nodes {
2024-03-10 17:36:22 +01:00
...FULL_TRACKER_FIELDS
}
}
}
`;
export const TRACKER_SEARCH = gql`
query TRACKER_SEARCH($query: String!, $trackerId: Int!) {
searchTracker(input: { query: $query, trackerId: $trackerId }) {
trackSearches {
2024-02-16 19:55:54 +01:00
id
2024-03-10 17:36:22 +01:00
title
coverUrl
publishingStatus
publishingType
remoteId
startDate
summary
totalChapters
trackerId
trackingUrl
2024-02-16 19:55:54 +01:00
}
}
}
`;