Added basic filter for actor boob size.
This commit is contained in:
@@ -272,15 +272,12 @@ function initActorActions(store, router) {
|
||||
|| (gender === 'all' && ' ')
|
||||
|| `gender: { equalTo: "${gender}" }`;
|
||||
|
||||
const naturalBoobsFilter = (naturalBoobs && 'naturalBoobs: { equalTo: true }')
|
||||
|| (naturalBoobs === false && 'naturalBoobs: { equalTo: false }')
|
||||
|| '';
|
||||
|
||||
const { connection: { actors, totalCount } } = await graphql(`
|
||||
query Actors(
|
||||
$limit: Int,
|
||||
$offset: Int = 0,
|
||||
$letter: String! = "",
|
||||
$naturalBoobs: Boolean,
|
||||
) {
|
||||
connection: actorsConnection(
|
||||
first: $limit,
|
||||
@@ -293,8 +290,10 @@ function initActorActions(store, router) {
|
||||
name: {
|
||||
startsWith: $letter
|
||||
}
|
||||
naturalBoobs: {
|
||||
equalTo: $naturalBoobs
|
||||
}
|
||||
${genderFilter}
|
||||
${naturalBoobsFilter}
|
||||
}
|
||||
) {
|
||||
totalCount
|
||||
|
||||
Reference in New Issue
Block a user