1234567891011121314151617181920212223 |
- import { actionPromise } from "../reducers";
- import { gql } from "../helpers";
- export const actionOrders = ({ promiseName = "orders" } = {}) =>
- actionPromise(
- promiseName,
- gql(
- `
- query orders($query:String){
- OrderFind(query:$query){
- _id price createdAt status
- orderGoods{
- _id count price good{
- name _id price images{
- url _id
- }
- }
- }
- }
- }
- `,
- { query: JSON.stringify([{}, { orderBy: "-createdAt", limit: 200 }]) }
- )
- );
|