forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmutation.js
More file actions
24 lines (22 loc) · 714 Bytes
/
Copy pathmutation.js
File metadata and controls
24 lines (22 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { GraphQLObjectType } from 'graphql'
import * as affiliationMutations from './affiliation/mutations'
import * as domainMutations from './domain/mutations'
import * as organizationMutations from './organization/mutations'
import * as userMutations from './user/mutations'
import * as tagMutations from './tags/mutations'
export const createMutationSchema = () => {
return new GraphQLObjectType({
name: 'Mutation',
fields: () => ({
// Affiliations Mutations
...affiliationMutations,
// Domain Mutations
...domainMutations,
// Organization Mutations
...organizationMutations,
// User Mutations
...userMutations,
...tagMutations,
}),
})
}