saleor: simplify the naming for GraphQL statements

This commit is contained in:
Zaiste
2021-05-12 12:07:26 +02:00
parent 42ae126b7b
commit 2fe2c71fc3
35 changed files with 76 additions and 110 deletions

View File

@@ -9,7 +9,7 @@ import {
MutationAccountRegisterArgs
} from '../schema'
import { customerCreateMutation } from '../utils/mutations'
import * as mutation from '../utils/mutations'
import { handleAutomaticLogin, throwUserErrors } from '../utils'
export default useSignup as UseSignup<typeof handler>
@@ -21,7 +21,7 @@ export const handler: MutationHook<
AccountRegisterInput
> = {
fetchOptions: {
query: customerCreateMutation,
query: mutation.accountRegister
},
async fetcher({
input: { email, password },