saleor-dashboard/src/containers/SearchCollections/index.tsx

25 lines
530 B
TypeScript
Raw Normal View History

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