saleor: unify GraphQL naming approach

This commit is contained in:
Zaiste
2021-05-14 15:57:45 +02:00
parent df3d85f86e
commit f530704efe
50 changed files with 217 additions and 216 deletions

View File

@@ -1,5 +1,5 @@
import { getConfig, SaleorConfig } from '../api'
import { getCustomerIdQuery } from '../utils/queries'
import * as query from '../utils/queries'
import Cookies from 'js-cookie'
async function getCustomerId({
@@ -11,7 +11,7 @@ async function getCustomerId({
}): Promise<number | undefined> {
config = getConfig(config)
const { data } = await config.fetch(getCustomerIdQuery, {
const { data } = await config.fetch(query.CustomerOne, {
variables: {
customerAccesToken:
customerAccesToken || Cookies.get(config.customerCookie),