GetThemeCustomization.ts 565 B

1234567891011121314151617181920212223242526
  1. import { gql } from "@apollo/client";
  2. // type 查询的是一组type相同的数据
  3. // name查询的是一个name是给定值的数据
  4. export const GET_THEME_CUSTOMIZATION = gql`
  5. query ThemeCustomizationQuery($type: String,$name:String) {
  6. themeCustomizations(type: $type, name:$name) {
  7. edges {
  8. node {
  9. id
  10. type
  11. name
  12. status
  13. translation {
  14. id
  15. _id
  16. themeCustomizationId
  17. locale
  18. options
  19. }
  20. }
  21. }
  22. }
  23. }
  24. `;