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

@@ -7,7 +7,7 @@ import useCommerceCart, {
import { Cart } from '../types'
import { SWRHook } from '@commerce/utils/types'
import { checkoutCreate, checkoutToCart, getCheckoutId } from '../utils'
import { getCheckoutQuery } from '../utils/queries'
import * as query from '../utils/queries'
export default useCommerceCart as UseCart<typeof handler>
@@ -18,7 +18,7 @@ export const handler: SWRHook<
{ isEmpty?: boolean }
> = {
fetchOptions: {
query: getCheckoutQuery,
query: query.CheckoutOne,
},
async fetcher({ input: { cartId: checkoutId }, options, fetch }) {
let checkout