Using showcase view in filter.
This commit is contained in:
parent
2076028697
commit
542fbee85e
|
@ -415,9 +415,9 @@ const releaseFields = `
|
|||
`;
|
||||
|
||||
const releasesFragment = `
|
||||
connection: releasesShowcasedsConnection(
|
||||
connection: releasesConnection(
|
||||
filter: {
|
||||
release: {
|
||||
releasesShowcasedsConnectionExist: true
|
||||
date: {
|
||||
lessThan: $before,
|
||||
greaterThan: $after
|
||||
|
@ -432,17 +432,14 @@ const releasesFragment = `
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
first: $limit,
|
||||
offset: $offset,
|
||||
orderBy: $orderBy
|
||||
) {
|
||||
releases: nodes {
|
||||
release {
|
||||
${releaseFields}
|
||||
}
|
||||
}
|
||||
totalCount
|
||||
}
|
||||
`;
|
||||
|
|
|
@ -22,7 +22,7 @@ function initReleasesActions(store, router) {
|
|||
$offset:Int = 0,
|
||||
$after:Datetime = "1900-01-01 00:00:00",
|
||||
$before:Datetime = "2100-01-01 00:00:00",
|
||||
$orderBy: [ReleasesShowcasedsOrderBy!],
|
||||
$orderBy: [ReleasesOrderBy!],
|
||||
$exclude: [String!]
|
||||
) {
|
||||
${releasesFragment}
|
||||
|
@ -34,7 +34,7 @@ function initReleasesActions(store, router) {
|
|||
offset: Math.max(0, (pageNumber - 1)) * limit,
|
||||
after,
|
||||
before,
|
||||
orderBy: `RELEASE_BY_RELEASE_ID__${orderBy}`,
|
||||
orderBy,
|
||||
exclude: store.state.ui.tagFilter,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue