saleor-dashboard/src/taxes/queries.ts
2020-07-07 12:14:12 +02:00

22 lines
508 B
TypeScript

import {
countryWithTaxesFragment,
shopTaxesFragment
} from "@saleor/fragments/taxes";
import gql from "graphql-tag";
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);