Files
speckle-server/modules/core/graph/schemas/user.graphql
T
Dimitrie Stefanescu a9a77872d2 feat(gql): stream users now returns a custom type - no longer polluting the original
& many other fixes & squashed bugs (stream counts, other users' streams, etc.)
2020-07-21 23:40:42 +01:00

37 lines
656 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
userPwdStrength( pwd: String! ): JSONObject
}
"""
Base user type.
"""
type User {
id: String!
username: String
email: String
name: String
bio: String
company: String
avatar: String
verified: Boolean
profiles: JSONObject
role: String
}
extend type Mutation {
"""
Edits a user's profile.
"""
userEdit(user: UserEditInput!): Boolean!
}
input UserEditInput {
name: String
company: String
bio: String
}