forked from DebaucheryLibrarian/traxxx
Moved tag filter modes to postgres function.
This commit is contained in:
@@ -25,6 +25,7 @@ function initActorActions(store, router) {
|
||||
$orderBy:[ReleasesOrderBy!]
|
||||
$selectableTags: [String],
|
||||
$includeTags: [String!],
|
||||
$mode: String!,
|
||||
) {
|
||||
actor(id: $actorId) {
|
||||
id
|
||||
@@ -151,19 +152,9 @@ function initActorActions(store, router) {
|
||||
lessThan: $before,
|
||||
greaterThan: $after,
|
||||
}
|
||||
${mode === 'any' ? `
|
||||
releasesTagsConnection: {
|
||||
some: {
|
||||
tag: {
|
||||
slug: {
|
||||
in: $includeTags
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
` : ''}
|
||||
}
|
||||
${mode === 'all' ? 'selectedTags: $includeTags' : ''}
|
||||
selectedTags: $includeTags
|
||||
mode: $mode
|
||||
first: $limit
|
||||
offset: $offset
|
||||
orderBy: $orderBy
|
||||
@@ -185,6 +176,7 @@ function initActorActions(store, router) {
|
||||
orderBy,
|
||||
excludeTags: store.state.ui.filter,
|
||||
includeTags,
|
||||
mode,
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user