saleor-dashboard/src/containers/SearchCustomers/index.ts

25 lines
513 B
TypeScript
Raw Normal View History

2019-06-19 14:40:52 +00:00
import gql from "graphql-tag";
import BaseSearch from "../BaseSearch";
import {
SearchCustomers,
SearchCustomersVariables
} from "./types/SearchCustomers";
export const searchCustomers = gql`
query SearchCustomers($after: String, $first: Int!, $query: String!) {
customers(after: $after, first: $first, query: $query) {
edges {
node {
id
email
}
}
}
}
`;
export default BaseSearch<SearchCustomers, SearchCustomersVariables>(
searchCustomers
);