Added working minimum cup size slider.

This commit is contained in:
DebaucheryLibrarian
2021-03-02 02:30:44 +01:00
parent d6bebd8fec
commit 408066aba0
4 changed files with 16 additions and 5 deletions

View File

@@ -267,16 +267,20 @@ function initActorActions(store, router) {
letter,
gender,
naturalBoobs,
cup,
}) {
const genderFilter = (gender === null && 'gender: { isNull: true }')
|| (gender === 'all' && ' ')
|| `gender: { equalTo: "${gender}" }`;
console.log(cup);
const { connection: { actors, totalCount } } = await graphql(`
query Actors(
$limit: Int,
$offset: Int = 0,
$letter: String! = "",
$cup: [String!]
$naturalBoobs: Boolean,
) {
connection: actorsConnection(
@@ -293,6 +297,9 @@ function initActorActions(store, router) {
naturalBoobs: {
equalTo: $naturalBoobs
}
cup: {
in: $cup
}
${genderFilter}
}
) {
@@ -347,6 +354,7 @@ function initActorActions(store, router) {
offset: Math.max(0, (pageNumber - 1)) * limit,
limit,
letter,
cup,
naturalBoobs,
});