admin-definitions.ts 506 B

123456789101112131415161718192021
  1. import { assetFragment } from './fragments-admin';
  2. import { graphql } from './graphql-admin';
  3. export const createAssetsDocument = graphql(
  4. `
  5. mutation CreateAssets($input: [CreateAssetInput!]!) {
  6. createAssets(input: $input) {
  7. ...Asset
  8. }
  9. }
  10. `,
  11. [assetFragment],
  12. );
  13. export const deleteAssetDocument = graphql(`
  14. mutation DeleteAsset($input: DeleteAssetInput!) {
  15. deleteAsset(input: $input) {
  16. result
  17. }
  18. }
  19. `);