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