William Petit
676ddf3bc8
Types: type Workgroup { id: ID! name: String createdAt: Time! closedAt: Time members: [User]! } Mutations: joinWorkgroup(workgroupId: ID!): Workgroup! leaveWorkgroup(workgroupId: ID!): Workgroup! createWorkgroup(changes: WorkgroupChanges!): Workgroup! closeWorkgroup(workgroupId: ID!): Workgroup! updateWorkgroup(workgroupId: ID!, changes: WorkgroupChanges!): Workgroup! Queries: workgroups: [Workgroup]!
16 lines
424 B
GraphQL
16 lines
424 B
GraphQL
input ProfileChanges {
|
|
name: String
|
|
}
|
|
|
|
input WorkgroupChanges {
|
|
name: String
|
|
}
|
|
|
|
type Mutation {
|
|
updateProfile(changes: ProfileChanges!): User!
|
|
joinWorkgroup(workgroupId: ID!): Workgroup!
|
|
leaveWorkgroup(workgroupId: ID!): Workgroup!
|
|
createWorkgroup(changes: WorkgroupChanges!): Workgroup!
|
|
closeWorkgroup(workgroupId: ID!): Workgroup!
|
|
updateWorkgroup(workgroupId: ID!, changes: WorkgroupChanges!): Workgroup!
|
|
} |