Regenerate GraphQL Server

This commit is contained in:
2023-05-04 11:29:53 +02:00
parent 4ae763ee1b
commit bb20ed655a
4 changed files with 22 additions and 84 deletions

View File

@@ -29,7 +29,7 @@
let paging = { itemsPerPage, page }
let filter = []
const jobs = queryStore({
$: jobs = queryStore({
client: getContextClient(),
query: gql`
query($filter: [JobFilter!]!, $sorting: OrderByInput!, $paging: PageRequest! ){
@@ -60,7 +60,7 @@
})
}
$: $jobs.variables = { ...$jobs.variables, sorting, paging }
// $: $jobs.variables = { ...$jobs.variables, sorting, paging }
$: matchedJobs = $jobs.data != null ? $jobs.data.jobs.count : 0
// (Re-)query and optionally set new filters.