mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
14
framework/vendure/utils/mutations/log-in-mutation.ts
Normal file
14
framework/vendure/utils/mutations/log-in-mutation.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export const loginMutation = /* GraphQL */ `
|
||||
mutation login($username: String!, $password: String!) {
|
||||
login(username: $username, password: $password) {
|
||||
__typename
|
||||
... on CurrentUser {
|
||||
id
|
||||
}
|
||||
... on ErrorResult {
|
||||
errorCode
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
Reference in New Issue
Block a user