2019-12-16 04:30:25 +00:00
|
|
|
const siteFragment = `
|
|
|
|
site {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
2020-01-06 23:30:51 +00:00
|
|
|
independent
|
2019-12-16 04:30:25 +00:00
|
|
|
network {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-01-02 23:59:02 +00:00
|
|
|
const sitesFragment = `
|
|
|
|
sites {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
2020-01-06 23:30:51 +00:00
|
|
|
independent
|
2020-01-02 23:59:02 +00:00
|
|
|
network {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-12-16 04:30:25 +00:00
|
|
|
const releaseActorsFragment = `
|
2020-01-04 01:51:58 +00:00
|
|
|
actors: releasesActors(orderBy: ACTOR_BY_ACTOR_ID__GENDER_ASC) {
|
2019-12-19 03:42:50 +00:00
|
|
|
actor {
|
2019-12-16 04:30:25 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
birthdate
|
|
|
|
age
|
2020-01-25 01:29:49 +00:00
|
|
|
gender
|
2019-12-16 04:30:25 +00:00
|
|
|
originCountry: countryByBirthCountryAlpha2 {
|
|
|
|
alpha2
|
|
|
|
name
|
|
|
|
alias
|
|
|
|
}
|
2019-12-19 03:42:50 +00:00
|
|
|
avatar: actorsAvatarByActorId {
|
|
|
|
media {
|
|
|
|
thumbnail
|
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const releaseTagsFragment = `
|
2020-01-04 01:51:58 +00:00
|
|
|
tags: releasesTags(orderBy: TAG_BY_TAG_ID__PRIORITY_DESC) {
|
2019-12-19 03:42:50 +00:00
|
|
|
tag {
|
2019-12-16 04:30:25 +00:00
|
|
|
name
|
|
|
|
priority
|
|
|
|
slug
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const releasePosterFragment = `
|
2019-12-19 03:42:50 +00:00
|
|
|
poster: releasesPosterByReleaseId {
|
|
|
|
media {
|
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
comment
|
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const releasePhotosFragment = `
|
2019-12-19 03:42:50 +00:00
|
|
|
photos: releasesPhotos {
|
|
|
|
media {
|
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
comment
|
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const releaseTrailerFragment = `
|
2019-12-19 03:42:50 +00:00
|
|
|
trailer: releasesTrailerByReleaseId {
|
|
|
|
media {
|
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-01-08 23:23:37 +00:00
|
|
|
const releaseFields = `
|
|
|
|
id
|
|
|
|
title
|
|
|
|
date
|
|
|
|
createdAt
|
|
|
|
url
|
|
|
|
${releaseActorsFragment}
|
|
|
|
${releaseTagsFragment}
|
|
|
|
${releasePosterFragment}
|
|
|
|
${siteFragment}
|
|
|
|
studio {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-12-16 04:30:25 +00:00
|
|
|
const releasesFragment = `
|
2019-12-18 01:42:55 +00:00
|
|
|
releases(
|
|
|
|
filter: {
|
|
|
|
date: {
|
|
|
|
lessThan: $before,
|
|
|
|
greaterThan: $after,
|
|
|
|
}
|
2020-01-30 22:41:10 +00:00
|
|
|
releasesTags: {
|
|
|
|
none: {
|
|
|
|
tag: {
|
|
|
|
slug: {
|
|
|
|
in: $exclude
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-18 01:42:55 +00:00
|
|
|
},
|
|
|
|
first: $limit,
|
2020-01-08 23:23:37 +00:00
|
|
|
orderBy: $orderBy,
|
2019-12-18 01:42:55 +00:00
|
|
|
) {
|
2020-01-08 23:23:37 +00:00
|
|
|
${releaseFields}
|
2019-12-18 01:42:55 +00:00
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
const releaseFragment = `
|
|
|
|
release(id: $releaseId) {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
description
|
|
|
|
date
|
|
|
|
duration
|
|
|
|
createdAt
|
|
|
|
shootId
|
|
|
|
url
|
|
|
|
${releaseActorsFragment}
|
|
|
|
${releaseTagsFragment}
|
|
|
|
${releasePosterFragment}
|
|
|
|
${releasePhotosFragment}
|
|
|
|
${releaseTrailerFragment}
|
|
|
|
${siteFragment}
|
|
|
|
studio {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export {
|
|
|
|
releaseActorsFragment,
|
2020-01-08 23:23:37 +00:00
|
|
|
releaseFields,
|
2019-12-16 04:30:25 +00:00
|
|
|
releaseTagsFragment,
|
|
|
|
releasePosterFragment,
|
|
|
|
releasePhotosFragment,
|
|
|
|
releaseTrailerFragment,
|
|
|
|
releasesFragment,
|
|
|
|
releaseFragment,
|
|
|
|
siteFragment,
|
2020-01-02 23:59:02 +00:00
|
|
|
sitesFragment,
|
2019-12-16 04:30:25 +00:00
|
|
|
};
|