input ProfileChanges {
  name: String
}

input WorkgroupChanges {
  name: String
}

input DecisionSupportFileChanges {
  title: String
	sections: Map
	status: String
	workgroupId: ID
	votedAt: Time
	closedAt: Time
}

type Mutation {
  createDecisionSupportFile(changes: DecisionSupportFileChanges): DecisionSupportFile!
  updateDecisionSupportFile(id: ID!, changes: DecisionSupportFileChanges): DecisionSupportFile!

  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!
}