MageSmith
QueryCms · Magento 2.4.9

cmsBlocks

cmsBlocks is a Magento 2 GraphQL query in the Cms module. Return information about CMS blocks. It returns CmsBlocks and is callable anonymously.

Last verified: against Magento 2.4.9.

Returns

CmsBlocks

Resolver class

Magento\CmsGraphQl\Model\Resolver\Blocks

Cache

identity: Magento\CmsGraphQl\Model\Resolver\Block\Identity

Arguments

identifiers [String]

An array of CMS block IDs.

Example request

Auto-generated from the SDL — paste-ready against your store's /graphql endpoint. Replace the host, store code, and any required values before running.

Headers

Content-Type
application/json
Store
default store view code; use 'default' for the single-store baseline

Query

query {
  cmsBlocks {
    items {
      identifier
      title
      content
    }
  }
}

Variables

{}

Related in CmsGraphQl

Other fields shipped by the same module.

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.