actionGoodUpsert.js 387 B

123456789101112131415
  1. import { gql } from "../helpers";
  2. import { actionPromise } from "../reducers";
  3. export const actionGoodUpsert = (good) =>
  4. actionPromise(
  5. "goodUpsert",
  6. gql(
  7. `mutation GoodUpsert($good:GoodInput!){
  8. GoodUpsert(good:$good){
  9. _id name
  10. }
  11. }`,
  12. { good }
  13. )
  14. );