Add limit to all relationships

This commit is contained in:
Timothy Warren 2020-09-09 10:23:17 -04:00
parent 02bd0288f2
commit 7211aa0de7
11 changed files with 50 additions and 33 deletions

View File

@ -17,12 +17,12 @@ query ($slug: String!) {
width
}
}
categories {
categories(first: 100) {
nodes {
title
}
}
characters {
characters(first: 100) {
nodes {
character {
id
@ -59,13 +59,13 @@ query ($slug: String!) {
season
sfw
slug
mappings {
mappings(first: 10) {
nodes {
externalId
externalSite
}
}
staff {
staff(first: 100) {
nodes {
person {
id
@ -101,7 +101,7 @@ query ($slug: String!) {
}
}
status
streamingLinks {
streamingLinks(first: 10) {
nodes {
dubs
subs

View File

@ -17,12 +17,12 @@ query ($id: ID!) {
width
}
}
categories {
categories(first: 100) {
nodes {
title
}
}
characters {
characters(first: 100) {
nodes {
character {
id
@ -59,13 +59,13 @@ query ($id: ID!) {
season
sfw
slug
mappings {
mappings(first: 10) {
nodes {
externalId
externalSite
}
}
staff {
staff(first: 100) {
nodes {
person {
id
@ -101,6 +101,18 @@ query ($id: ID!) {
}
}
status
streamingLinks(first: 10) {
nodes {
dubs
subs
regions
streamer {
id
siteName
}
url
}
}
subtype
titles {
alternatives

View File

@ -13,7 +13,7 @@ query ($slug: String!) {
canonicalLocale
localized
},
media {
media(first: 100) {
nodes {
media {
id
@ -40,7 +40,7 @@ query ($slug: String!) {
}
type
}
voices {
voices(first: 100) {
nodes {
id
licensor {

View File

@ -1,7 +1,12 @@
query ($slug: String!, $type: media_type!, $status: [LibraryEntryStatus!]) {
query (
$slug: String!,
$type: media_type!,
$status: [LibraryEntryStatus!],
$after: String
) {
findProfileBySlug(slug: $slug) {
library {
all(mediaType: $type, status: $status) {
all(first: 100, after: $after, mediaType: $type, status: $status) {
pageInfo {
endCursor
hasNextPage
@ -24,12 +29,12 @@ query ($slug: String!, $type: media_type!, $status: [LibraryEntryStatus!]) {
id
ageRating
ageRatingGuide
categories {
categories(first: 100) {
nodes {
title
}
}
mappings {
mappings(first: 10) {
nodes {
externalId
externalSite
@ -60,7 +65,7 @@ query ($slug: String!, $type: media_type!, $status: [LibraryEntryStatus!]) {
}
...on Anime {
episodeCount
streamingLinks {
streamingLinks(first: 10) {
nodes {
dubs
subs

View File

@ -1,7 +1,7 @@
query ($slug: String!, $type: media_type!, $status: [LibraryEntryStatus!]) {
findProfileBySlug(slug: $slug) {
library {
all(mediaType: $type, status: $status) {
all(first: 1, mediaType: $type, status: $status) {
totalCount
}
}

View File

@ -14,12 +14,12 @@ query($id: ID!) {
id
slug
ageRating
categories {
categories(first: 100) {
nodes {
title
}
}
mappings {
mappings(first: 10) {
nodes {
externalId
externalSite
@ -48,7 +48,7 @@ query($id: ID!) {
...on Anime {
episodeCount
episodeLength
streamingLinks {
streamingLinks(first: 10) {
nodes {
dubs
subs

View File

@ -1,6 +1,6 @@
query ($slug: String!) {
findProfileBySlug(slug: $slug) {
libraryEvents {
libraryEvents(first: 100) {
nodes {
id
changedData

View File

@ -17,14 +17,14 @@ query ($slug: String!) {
width
}
}
categories {
categories(first: 100) {
nodes {
title
}
}
chapterCount
volumeCount
characters {
characters(first: 100) {
nodes {
character {
id
@ -54,7 +54,7 @@ query ($slug: String!) {
description
startDate
endDate
mappings {
mappings(first: 10) {
nodes {
externalId
externalSite
@ -76,7 +76,7 @@ query ($slug: String!) {
}
sfw
slug
staff {
staff(first: 100) {
nodes {
person {
id

View File

@ -17,14 +17,14 @@ query ($id: ID!) {
width
}
}
categories {
categories(first: 100) {
nodes {
title
}
}
chapterCount
volumeCount
characters {
characters(first: 100) {
nodes {
character {
id
@ -54,7 +54,7 @@ query ($id: ID!) {
description
startDate
endDate
mappings {
mappings(first: 10) {
nodes {
externalId
externalSite
@ -76,7 +76,7 @@ query ($id: ID!) {
}
sfw
slug
staff {
staff(first: 100) {
nodes {
person {
id

View File

@ -22,7 +22,7 @@ query ($slug: String!) {
canonical
localized
}
mediaStaff {
mediaStaff(first: 100) {
nodes {
id
role
@ -52,7 +52,7 @@ query ($slug: String!) {
}
}
}
voices {
voices(first: 100) {
nodes {
locale
mediaCharacter {

View File

@ -24,13 +24,13 @@ query ($slug: String!) {
proMessage
proTier
slug
siteLinks {
siteLinks(first: 20) {
nodes {
id
url
}
}
favorites {
favorites(first: 100) {
nodes {
id
item {