123456789101112131415161718 |
- import { gql } from "../helpers";
- import { actionCartClear, actionPromise } from "../reducers";
- export const actionOrderUpsert = (order) =>
- actionPromise(
- "orderUpsert",
- gql(
- `mutation newOrder($order:OrderInput!){
- OrderUpsert(order:$order){
- _id price
- }
- }
- `,
- {
- order,
- }
- )
- );
|