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]!
24 lines
298 B
GraphQL
24 lines
298 B
GraphQL
scalar Time
|
|
|
|
type User {
|
|
id: ID!
|
|
name: String
|
|
email: String!
|
|
connectedAt: Time!
|
|
createdAt: Time!
|
|
workgroups:[Workgroup]!
|
|
}
|
|
|
|
type Workgroup {
|
|
id: ID!
|
|
name: String
|
|
createdAt: Time!
|
|
closedAt: Time
|
|
members: [User]!
|
|
}
|
|
|
|
type Query {
|
|
userProfile: User
|
|
workgroups: [Workgroup]!
|
|
}
|