GetStates.ts 426 B

1234567891011121314151617181920
  1. import { gql, TypedDocumentNode } from "@apollo/client";
  2. import { State } from "@/types/checkout/type";
  3. type GetCountryStates = {
  4. countryStates: State[];
  5. };
  6. export const GET_COUNTRY_STATES: TypedDocumentNode<GetCountryStates> = gql`
  7. query getCountryStates($countryId: Int!) {
  8. countryStates(countryId: $countryId) {
  9. id
  10. _id
  11. code
  12. defaultName
  13. countryId
  14. countryCode
  15. }
  16. }
  17. `;