Skip to content

Commit

Permalink
fix(graphql): Fix count endpoint missing after GSG upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentdesmares committed Nov 4, 2020
1 parent 98f6591 commit 6a50b03
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/graphql/batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ exports.__esModule = true;
function BatchConfiguration(graphqlTypes, models) {
return {
model: models.batch,
actions: ['list', 'update', 'create'],
actions: ['list', 'update', 'create', 'count'],
list: {
before: function (findOptions) {
return findOptions;
Expand Down
2 changes: 1 addition & 1 deletion lib/graphql/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function JobConfiguration(graphqlTypes, models) {
var _this = this;
return {
model: models.job,
actions: ['list', 'update', 'create'],
actions: ['list', 'update', 'create', 'count'],
additionalMutations: {
acquireJob: acquire_1["default"](graphqlTypes, models)
},
Expand Down
2 changes: 1 addition & 1 deletion lib/graphql/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ exports.__esModule = true;
function PipelineConfiguration(outputTypes, models) {
return {
model: models.pipeline,
actions: ['list', 'update', 'create'],
actions: ['list', 'update', 'create', 'count'],
list: {
before: function (findOptions) {
return findOptions;
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function BatchConfiguration(
): ModelEndpointsConfiguration {
return {
model: models.batch,
actions: ['list', 'update', 'create'],
actions: ['list', 'update', 'create', 'count'],
list: {
before: findOptions => {
return findOptions
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function JobConfiguration(
): ModelEndpointsConfiguration {
return {
model: models.job,
actions: ['list', 'update', 'create'],
actions: ['list', 'update', 'create', 'count'],
additionalMutations: {
acquireJob: acquireJob(graphqlTypes, models)
},
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function PipelineConfiguration(
): ModelEndpointsConfiguration {
return {
model: models.pipeline,
actions: ['list', 'update', 'create'],
actions: ['list', 'update', 'create', 'count'],
list: {
before: findOptions => {
return findOptions
Expand Down
1 change: 1 addition & 0 deletions tests/job.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ describe('Test the job endpoint', () => {
createdAt
deletedAt
}
jobCount
}
&operationName=getJobs`
)
Expand Down

0 comments on commit 6a50b03

Please sign in to comment.