SEARCH_MANGA: "\nquery ($search: String, $page: Int, $perPage: Int) {\n Page(page: $page, perPage: $perPage) {\n pageInfo {\n total\n currentPage\n lastPage\n hasNextPage\n perPage\n }\n media(type: MANGA, search: $search, format_not_in: [NOVEL]) {\n id\n title {\n romaji\n english\n native\n }\n synonyms\n format\n status\n chapters\n volumes\n description\n genres\n tags {\n id\n name\n category\n }\n countryOfOrigin\n source\n staff {\n edges {\n role\n node {\n name {\n full\n }\n }\n }\n }\n coverImage {\n large\n medium\n }\n mediaListEntry {\n id\n status\n progress\n score\n private\n }\n isAdult\n }\n }\n}\n" = ...

Query to search for manga titles and get paginated results from AniList. Excludes light novels from results.

export const SEARCH_MANGA = `
query ($search: String, $page: Int, $perPage: Int) {
Page(page: $page, perPage: $perPage) {
pageInfo {
total
currentPage
lastPage
hasNextPage
perPage
}
media(type: MANGA, search: $search, format_not_in: [NOVEL]) {
id
title {
romaji
english
native
}
synonyms
format
status
chapters
volumes
description
genres
tags {
id
name
category
}
countryOfOrigin
source
staff {
edges {
role
node {
name {
full
}
}
}
}
coverImage {
large
medium
}
mediaListEntry {
id
status
progress
score
private
}
isAdult
}
}
}
`;