schema update: user profile mutation
This commit is contained in:
parent
a146a8dd1d
commit
ea8c04d6e2
|
@ -6,7 +6,7 @@ type Result {
|
||||||
error: String
|
error: String
|
||||||
}
|
}
|
||||||
|
|
||||||
type SignInResult {
|
type AuthResult {
|
||||||
error: String
|
error: String
|
||||||
token: String
|
token: String
|
||||||
user: User
|
user: User
|
||||||
|
@ -35,6 +35,12 @@ input ShoutInput {
|
||||||
visibleForUsers: [Int]
|
visibleForUsers: [Int]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input ProfileInput {
|
||||||
|
email: String
|
||||||
|
username: String
|
||||||
|
userpic: String
|
||||||
|
}
|
||||||
|
|
||||||
type ShoutResult {
|
type ShoutResult {
|
||||||
error: String
|
error: String
|
||||||
shout: Shout
|
shout: Shout
|
||||||
|
@ -50,33 +56,34 @@ type Mutation {
|
||||||
|
|
||||||
# auth
|
# auth
|
||||||
# resetPassword(password: String!, token: String!): Token!
|
# resetPassword(password: String!, token: String!): Token!
|
||||||
confirmEmail(token: String!): SignInResult!
|
confirmEmail(token: String!): AuthResult!
|
||||||
# invalidateAllTokens: Boolean!
|
# invalidateAllTokens: Boolean!
|
||||||
# invalidateTokenById(id: Int!): Boolean!
|
# invalidateTokenById(id: Int!): Boolean!
|
||||||
# requestEmailConfirmation: User!
|
# requestEmailConfirmation: User!
|
||||||
# requestPasswordReset(email: String!): Boolean!
|
# requestPasswordReset(email: String!): Boolean!
|
||||||
registerUser(email: String!, password: String!): SignInResult!
|
registerUser(email: String!, password: String!): AuthResult!
|
||||||
|
|
||||||
# shout
|
# shout
|
||||||
createShout(input: ShoutInput!): ShoutResult!
|
createShout(input: ShoutInput!): ShoutResult!
|
||||||
deleteShout(slug: String!): Result!
|
deleteShout(slug: String!): Result!
|
||||||
rateShout(slug: String!, value: Int!): Result!
|
rateShout(slug: String!, value: Int!): Result!
|
||||||
|
|
||||||
# profile
|
# user profile
|
||||||
# rateUser(value: Int!): ResultPayload!
|
# rateUser(value: Int!): ResultPayload!
|
||||||
# updateOnlineStatus: ResultPayload!
|
# updateOnlineStatus: ResultPayload!
|
||||||
# updateUsername(username: String!): ResultPayload!
|
updateProfile(profile: ProfileInput!): ResultPayload!
|
||||||
}
|
}
|
||||||
|
|
||||||
################################### Query
|
################################### Query
|
||||||
|
|
||||||
type Query {
|
type Query {
|
||||||
# auth / user
|
# auth
|
||||||
isEmailFree(email: String!): Boolean!
|
isEmailFree(email: String!): Result!
|
||||||
signIn(email: String!, password: String!): SignInResult!
|
signIn(email: String!, password: String!): AuthResult!
|
||||||
signOut: Result!
|
signOut: Result!
|
||||||
|
# user profile
|
||||||
getCurrentUser: UserResult!
|
getCurrentUser: UserResult!
|
||||||
# getUserById(id: Int!): ResultPayload!
|
getUserById(id: Int!): UserResult!
|
||||||
# getUserRating(shout: Int): Int!
|
# getUserRating(shout: Int): Int!
|
||||||
|
|
||||||
# messages
|
# messages
|
||||||
|
|
Loading…
Reference in New Issue
Block a user