graycoreio/daffodil

View on GitHub
libs/content/driver/magento/src/queries/get-blocks.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { gql } from 'apollo-angular';

import { cmsBlockFragment } from './fragments/public_api';

export const MAGENTO_CONTENT_GET_BLOCKS_QUERY_NAME = 'MagentoContentGetBlocks';

export const getCmsBlocks = gql`
  query ${MAGENTO_CONTENT_GET_BLOCKS_QUERY_NAME}($ids: [String!]!) {
    cmsBlocks(identifiers: $ids) {
      items {
        ...cmsBlock
      }
    }
  }
  ${cmsBlockFragment}
`;