Files
speckle-server/modules/core/graph/schemas/user.graphql
T

46 lines
827 B
GraphQL

extend type Query {
"""
Gets the profile of a user. If no id argument is provided, will return the current authenticated user's profile (as extracted from the authorization header).
"""
user(id: String): User
}
"""
Base user type.
"""
type User {
id: String!
username: String
email: String
name: String
bio: String
company: String
avatar: String
verified: Boolean
profiles: JSON
# apiTokens: [ApiToken]
}
extend type Mutation {
"""
Temporary measure, equal to local registration. Should be disabled if local_auth is false.
"""
userCreate(user: UserCreateInput!): String
userEdit(user: UserEditInput!): Boolean!
}
input UserCreateInput {
name: String!
username: String!
email: String!
password: String!
}
input UserEditInput {
name: String
company: String
bio: String
}