Skip to main content

Concepts

The following query will return all the asset repositories that the logged in user or API client has access to:

{
viewer {
mediaHubs {
edges {
node {
assetRepositories {
edges {
node {
id
label
}
}
}
}
}
}
}
}

The viewer
Link copied!

viewer is the top level query in the nested connections graph and returns an object of type User, which describes the logged user or API client.

Media Hubs
Link copied!

A Media Hub (MediaHub) is the space within which assets are produced and published.

MediaHubs can contain multiple asset repositories.

Asset Repositories
Link copied!

An Asset Repository (assetRepository) is a collection of assets.

Asset repositories are organised within a hub and each has associated permissions. This makes it possible to specify who can view, create and edit assets in a particular repository.