refactor: split resolver into multiple files based on domain

This commit is contained in:
Jordan Knott
2021-10-25 17:42:57 -05:00
parent fe90631df5
commit cf63783174
37 changed files with 4180 additions and 4220 deletions

23
internal/graph/schema/user.gql Normal file → Executable file
View File

@ -1,3 +1,26 @@
type UserAccount {
id: ID!
email: String!
createdAt: Time!
fullName: String!
initials: String!
bio: String!
role: Role!
username: String!
profileIcon: ProfileIcon!
owned: OwnedList!
member: MemberList!
}
type InvitedUserAccount {
id: ID!
email: String!
invitedOn: Time!
member: MemberList!
}
extend type Mutation {
createUserAccount(input: NewUserAccount!):
UserAccount! @hasRole(roles: [ADMIN], level: ORG, type: ORG)