2019-12-16 04:30:25 +00:00
|
|
|
const siteFragment = `
|
2020-06-27 22:15:13 +00:00
|
|
|
entity {
|
2019-12-16 04:30:25 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
2020-06-27 22:15:13 +00:00
|
|
|
type
|
2020-07-02 02:04:28 +00:00
|
|
|
independent
|
2020-06-27 22:15:13 +00:00
|
|
|
parent {
|
2019-12-16 04:30:25 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
2020-06-27 22:15:13 +00:00
|
|
|
type
|
2020-07-02 02:04:28 +00:00
|
|
|
independent
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-01-02 23:59:02 +00:00
|
|
|
const sitesFragment = `
|
2020-06-27 22:15:13 +00:00
|
|
|
entities {
|
2020-01-02 23:59:02 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
2020-06-27 22:15:13 +00:00
|
|
|
type
|
2020-07-02 02:04:28 +00:00
|
|
|
independent
|
2020-06-27 22:15:13 +00:00
|
|
|
parent {
|
2020-01-02 23:59:02 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
2020-06-27 22:15:13 +00:00
|
|
|
type
|
2020-07-02 02:04:28 +00:00
|
|
|
independent
|
2020-01-02 23:59:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-03-09 04:06:37 +00:00
|
|
|
const actorFields = `
|
2019-12-16 04:30:25 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
2020-05-15 02:40:59 +00:00
|
|
|
birthdate: dateOfBirth
|
2019-12-16 04:30:25 +00:00
|
|
|
age
|
2020-01-25 01:29:49 +00:00
|
|
|
gender
|
2020-05-17 03:24:46 +00:00
|
|
|
avatar: avatarMedia {
|
|
|
|
id
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
lazy
|
2020-05-25 00:02:28 +00:00
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
lazy
|
|
|
|
}
|
2020-05-17 03:24:46 +00:00
|
|
|
}
|
2020-06-17 02:07:24 +00:00
|
|
|
network: entity {
|
2020-03-27 03:39:13 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
2020-06-28 20:29:18 +00:00
|
|
|
birthCountry: countryByBirthCountryAlpha2 {
|
2019-12-16 04:30:25 +00:00
|
|
|
alpha2
|
|
|
|
name
|
|
|
|
alias
|
|
|
|
}
|
2020-03-09 04:06:37 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
const releaseActorsFragment = `
|
|
|
|
actors: releasesActors(orderBy: ACTOR_BY_ACTOR_ID__GENDER_ASC) {
|
|
|
|
actor {
|
|
|
|
${actorFields}
|
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
|
2020-05-07 00:10:28 +00:00
|
|
|
lazy
|
2019-12-19 03:42:50 +00:00
|
|
|
comment
|
2020-04-02 00:02:03 +00:00
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
thumbnail
|
2020-05-08 23:10:07 +00:00
|
|
|
lazy
|
2020-04-02 00:02:03 +00:00
|
|
|
path
|
|
|
|
comment
|
|
|
|
}
|
2019-12-19 03:42:50 +00:00
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-02-12 03:39:57 +00:00
|
|
|
const releaseCoversFragment = `
|
|
|
|
covers: releasesCovers {
|
|
|
|
media {
|
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
2020-05-07 00:10:28 +00:00
|
|
|
lazy
|
2020-02-12 03:39:57 +00:00
|
|
|
comment
|
2020-04-02 00:02:03 +00:00
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
thumbnail
|
2020-05-08 23:10:07 +00:00
|
|
|
lazy
|
2020-04-02 00:02:03 +00:00
|
|
|
path
|
|
|
|
comment
|
|
|
|
}
|
2020-02-12 03:39:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-12-16 04:30:25 +00:00
|
|
|
const releasePhotosFragment = `
|
2019-12-19 03:42:50 +00:00
|
|
|
photos: releasesPhotos {
|
|
|
|
media {
|
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
2020-05-08 23:10:07 +00:00
|
|
|
lazy
|
2019-12-19 03:42:50 +00:00
|
|
|
comment
|
2020-04-02 00:02:03 +00:00
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
thumbnail
|
2020-05-08 23:10:07 +00:00
|
|
|
lazy
|
2020-04-02 00:02:03 +00:00
|
|
|
path
|
|
|
|
comment
|
|
|
|
}
|
2019-12-19 03:42:50 +00:00
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const releaseTrailerFragment = `
|
2019-12-19 03:42:50 +00:00
|
|
|
trailer: releasesTrailerByReleaseId {
|
|
|
|
media {
|
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
2020-02-02 04:14:58 +00:00
|
|
|
mime
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const releaseTeaserFragment = `
|
|
|
|
teaser: releasesTeaserByReleaseId {
|
|
|
|
media {
|
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
mime
|
2019-12-19 03:42:50 +00:00
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-01-08 23:23:37 +00:00
|
|
|
const releaseFields = `
|
|
|
|
id
|
|
|
|
title
|
|
|
|
date
|
2020-07-03 02:12:56 +00:00
|
|
|
datePrecision
|
2020-02-04 02:12:09 +00:00
|
|
|
slug
|
2020-02-10 00:27:13 +00:00
|
|
|
type
|
2020-07-02 02:04:28 +00:00
|
|
|
shootId
|
2020-07-02 23:28:22 +00:00
|
|
|
productionDate
|
2020-01-08 23:23:37 +00:00
|
|
|
createdAt
|
|
|
|
url
|
|
|
|
${releaseActorsFragment}
|
|
|
|
${releaseTagsFragment}
|
|
|
|
${releasePosterFragment}
|
2020-02-12 03:39:57 +00:00
|
|
|
${releaseCoversFragment}
|
2020-01-08 23:23:37 +00:00
|
|
|
${siteFragment}
|
|
|
|
studio {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
|
|
|
}
|
2020-03-02 02:41:41 +00:00
|
|
|
isNew
|
2020-01-08 23:23:37 +00:00
|
|
|
`;
|
|
|
|
|
2019-12-16 04:30:25 +00:00
|
|
|
const releasesFragment = `
|
2020-05-22 02:32:16 +00:00
|
|
|
connection: releasesConnection(
|
2019-12-18 01:42:55 +00:00
|
|
|
filter: {
|
|
|
|
date: {
|
|
|
|
lessThan: $before,
|
|
|
|
greaterThan: $after,
|
|
|
|
}
|
2020-05-22 02:32:16 +00:00
|
|
|
releasesTagsConnection: {
|
2020-01-30 22:41:10 +00:00
|
|
|
none: {
|
|
|
|
tag: {
|
|
|
|
slug: {
|
|
|
|
in: $exclude
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-18 01:42:55 +00:00
|
|
|
},
|
|
|
|
first: $limit,
|
2020-05-22 02:32:16 +00:00
|
|
|
offset: $offset,
|
2020-01-08 23:23:37 +00:00
|
|
|
orderBy: $orderBy,
|
2019-12-18 01:42:55 +00:00
|
|
|
) {
|
2020-05-22 02:32:16 +00:00
|
|
|
releases: nodes {
|
|
|
|
${releaseFields}
|
|
|
|
movieActors: movieActorsByMovieId(orderBy: ACTOR_BY_ACTOR_ID__GENDER_ASC) {
|
|
|
|
actor {
|
|
|
|
${actorFields}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
movieTags: movieTagsByMovieId(orderBy: TAG_BY_TAG_ID__PRIORITY_DESC) {
|
|
|
|
tag {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
totalCount
|
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
|
2020-07-03 02:12:56 +00:00
|
|
|
datePrecision
|
2019-12-16 04:30:25 +00:00
|
|
|
duration
|
|
|
|
createdAt
|
|
|
|
shootId
|
2020-07-02 23:28:22 +00:00
|
|
|
productionDate
|
2019-12-16 04:30:25 +00:00
|
|
|
url
|
|
|
|
${releaseActorsFragment}
|
|
|
|
${releaseTagsFragment}
|
|
|
|
${releasePosterFragment}
|
|
|
|
${releasePhotosFragment}
|
2020-03-08 03:23:10 +00:00
|
|
|
${releaseCoversFragment}
|
2019-12-16 04:30:25 +00:00
|
|
|
${releaseTrailerFragment}
|
2020-02-02 04:14:58 +00:00
|
|
|
${releaseTeaserFragment}
|
2019-12-16 04:30:25 +00:00
|
|
|
${siteFragment}
|
2020-03-09 04:06:37 +00:00
|
|
|
movieActors: movieActorsByMovieId(orderBy: ACTOR_BY_ACTOR_ID__GENDER_ASC) {
|
|
|
|
actor {
|
|
|
|
${actorFields}
|
|
|
|
}
|
|
|
|
}
|
2020-03-09 15:54:45 +00:00
|
|
|
movieTags: movieTagsByMovieId(orderBy: TAG_BY_TAG_ID__PRIORITY_DESC) {
|
|
|
|
tag {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
}
|
2020-03-09 04:06:37 +00:00
|
|
|
movies: releasesMoviesBySceneId {
|
|
|
|
movie {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
date
|
|
|
|
slug
|
|
|
|
createdAt
|
|
|
|
url
|
|
|
|
${releaseCoversFragment}
|
|
|
|
${siteFragment}
|
|
|
|
actors: movieActorsByMovieId {
|
|
|
|
actor {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scenes: releasesMoviesByMovieId {
|
|
|
|
scene {
|
|
|
|
${releaseFields}
|
|
|
|
}
|
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
studio {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export {
|
2020-05-14 02:26:05 +00:00
|
|
|
releaseActorsFragment,
|
|
|
|
releaseFields,
|
|
|
|
releaseTagsFragment,
|
|
|
|
releasePosterFragment,
|
|
|
|
releasePhotosFragment,
|
|
|
|
releaseTrailerFragment,
|
|
|
|
releasesFragment,
|
|
|
|
releaseFragment,
|
|
|
|
siteFragment,
|
|
|
|
sitesFragment,
|
2019-12-16 04:30:25 +00:00
|
|
|
};
|