# LibraryBlock

> Type in domain **Guidelines**

- HTML: [LibraryBlock.html](LibraryBlock.html)
- Raw SDL: [LibraryBlock.sdl](LibraryBlock.sdl)
- Covered by: [llms.txt](../llms.txt)

Implements: `GuidelinePageBlockInterface`

## Fields

- `id`: `ID!` _(beta)_ — The id of the `GuidelinePageBlock`.
- `content`: `String` _(beta)_ — The searchable content of the `GuidelinePageBlock`. When the block cannot be serialized, this field is `null`.
- `url`: `Url!` _(beta)_ — The url of the `GuidelinePageBlock`
- `modifiedAt`: `DateTime!` _(beta)_ — The timestamp of the most recent modification to the `GuidelinePageBlock`. If not modified, this represents the creation time.
- `settings`: `JsonObject` _(beta)_ — The settings of the `GuidelinePageBlock`.
- `assetSettings` (`page`: `Int`, `limit`: `Int`): `GuidelinePageBlockAssetSettingItems` _(beta)_ — A list of `GuidelinePageBlockAssetSetting` used by this `GuidelinePageBlock`.
- `type`: `GuidelinePageBlockType!` _(beta)_ — The type of this `GuidelinePageBlock`.

## Reach via

Example queries that can return this type from the root `Query`.

### `guidelinePageBlock`

```graphql
query GuidelinePageBlock {
  guidelinePageBlock(id: "…") {
    ... on LibraryBlock {
      __typename
      assetSettings {
        total
        page
        limit
        hasNextPage
        items {
          settingName
          assets {
            total
            page
            limit
            hasNextPage
            items { previewUrl }
          }
        }
      }
      content
      id
      modifiedAt
      settings
      type {
        name
        id
        settingsSchema
      }
      url
    }
  }
}
```

Raw: [`GuidelinePageBlock-LibraryBlock.sdl`](../examples/GuidelinePageBlock-LibraryBlock.sdl)

### `guidelinePage › sections › elements`

```graphql
query GuidelinePageSectionsElements {
  guidelinePage(id: "…") {
    sections(limit: 25, page: 1) {
      items {
        elements(limit: 25, page: 1) {
          items {
            ... on LibraryBlock {
              __typename
              assetSettings {
                total
                page
                limit
                hasNextPage
                items {
                  settingName
                  assets {
                    total
                    page
                    limit
                    hasNextPage
                    items { previewUrl }
                  }
                }
              }
              content
              id
              modifiedAt
              settings
              type {
                name
                id
                settingsSchema
              }
              url
            }
          }
        }
      }
    }
  }
}
```

Raw: [`GuidelinePageSectionsElements-LibraryBlock.sdl`](../examples/GuidelinePageSectionsElements-LibraryBlock.sdl)

### `brand › guidelines › pages › sections › elements`

```graphql
query BrandGuidelinesPagesSectionsElements {
  brand(id: "…") {
    guidelines(limit: 25, page: 1) {
      items {
        pages(limit: 25, page: 1) {
          items {
            sections(limit: 25, page: 1) {
              items {
                elements(limit: 25, page: 1) {
                  items {
                    ... on LibraryBlock {
                      __typename
                      assetSettings {
                        total
                        page
                        limit
                        hasNextPage
                        items {
                          settingName
                          assets {
                            total
                            page
                            limit
                            hasNextPage
                            items { previewUrl }
                          }
                        }
                      }
                      content
                      id
                      modifiedAt
                      settings
                      type {
                        name
                        id
                        settingsSchema
                      }
                      url
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```

Raw: [`BrandGuidelinesPagesSectionsElements-LibraryBlock.sdl`](../examples/BrandGuidelinesPagesSectionsElements-LibraryBlock.sdl)

### `brands › guidelines › pages › sections › elements`

```graphql
query BrandsGuidelinesPagesSectionsElements {
  brands {
    guidelines(limit: 25, page: 1) {
      items {
        pages(limit: 25, page: 1) {
          items {
            sections(limit: 25, page: 1) {
              items {
                elements(limit: 25, page: 1) {
                  items {
                    ... on LibraryBlock {
                      __typename
                      assetSettings {
                        total
                        page
                        limit
                        hasNextPage
                        items {
                          settingName
                          assets {
                            total
                            page
                            limit
                            hasNextPage
                            items { previewUrl }
                          }
                        }
                      }
                      content
                      id
                      modifiedAt
                      settings
                      type {
                        name
                        id
                        settingsSchema
                      }
                      url
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```

Raw: [`BrandsGuidelinesPagesSectionsElements-LibraryBlock.sdl`](../examples/BrandsGuidelinesPagesSectionsElements-LibraryBlock.sdl)
