Skip to content
On this page

Rokka (graphql_rokka_schema)

Adds support for the rokka module.

Schema

Extension

graphql
extend type File {
  rokkaMetadata: RokkaMetadata
}

Examples

graphql
query {
  entityById(entityType: MEDIA, id: "3") {
    ... on MediaImage {
      fieldImage {
        entity {
          rokkaMetadata {
            hash
            height
            width
            format
            filesize
          }
        }
      }
    }
  }
}
json
{
  "data": {
    "entityById": {
      "fieldImage": {
        "entity": {
          "rokkaMetadata": {
            "hash": "ee66313163ff11940509d8c3ec67ba82fa0a3a62",
            "height": 768,
            "width": 768,
            "format": "jpg",
            "filesize": 123847
          }
        }
      }
    }
  }
}