commerce/packages/vendure/utils/mutations/log-in-mutation.ts
2022-01-14 23:44:08 -05:00

15 lines
302 B
TypeScript

export const loginMutation = /* GraphQL */ `
mutation login($username: String!, $password: String!) {
login(username: $username, password: $password) {
__typename
... on CurrentUser {
id
}
... on ErrorResult {
errorCode
message
}
}
}
`