saleor-dashboard/src/taxes/queries.ts

23 lines
508 B
TypeScript
Raw Normal View History

import {
countryWithTaxesFragment,
shopTaxesFragment
} from "@saleor/fragments/taxes";
2019-06-19 14:40:52 +00:00
import gql from "graphql-tag";
2019-06-19 14:40:52 +00:00
import { TypedQuery } from "../queries";
import { CountryList } from "./types/CountryList";
const countryList = gql`
${countryWithTaxesFragment}
${shopTaxesFragment}
query CountryList {
shop {
...ShopTaxesFragment
countries {
...CountryWithTaxesFragment
}
}
}
`;
export const TypedCountryListQuery = TypedQuery<CountryList, {}>(countryList);