Open vfa-tuanvm opened 1 year ago
Schema database
GraphQL schema
input SignInInput { email: String! password: String! } input SignUpInput { fullName: String! email: String! password: String! } input LinkToSocialAccountInput { code: String! type: String! } type AuthResponse { email: String fullName: String avatar: String accessToken: String! refreshToken: String! } type AccountResponse { socialId: String! type: String! } query { signIn(input: SignInInput!): AuthResponse! getSocialAccountsLinked: [AccountResponse]! } mutation { signUp(input: SignUpInput!): String! signInFacebook(code: String!): AuthResponse! signInGoogle(code: String!): AuthResponse! unlinkSocialAccount(type: String!): String! linkToSocialAccount(input: LinkToSocialAccountInput!): AccountResponse! }
social account thiếu email, avatar (lấy link hình social đầu tiên) table user thiếu fullname,
LinkToFacebookDTO, SignInFacebookDTO ko cần có redirectURL, backend sẽ quy định.
Schema database
GraphQL schema