actionGoodDelete.js 406 B

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