refactor: split resolver into multiple files based on domain
This commit is contained in:
23
internal/graph/schema/user.gql
Normal file → Executable file
23
internal/graph/schema/user.gql
Normal file → Executable 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)
|
||||
|
Reference in New Issue
Block a user