Logo of FrontifyDeveloper portalArrow to the right
GraphQL reference
Query field

library(id: ID!):Library

Retrieve Library details by Id.

Arguments
id: ID!

Library Id.

Fields of Library
id:ID!

Library Id.

name:String!

Library name.

color:RgbaColor

Library color.

assetCount:Int
Deprecated

Amount of Assets contained in this Library.

Removal: 1 Jul 2024 — use assets.total instead
metadataFields:[MetadataField]
Deprecated

Retrieve list of all MetadataFields belonging to this Library.

Removal: 1 Jul 2026 — use customMetadataProperties instead
assets(
limit: Int = 25
page: Int = 1

Search or list Assets in this Library.

collections(
limit: Int = 25
page: Int = 1

List Collection type items within a Library.

Browse the Library's SubFolderItems and AssetItems.

collaborators:LibraryCollaborators

Library collaborators.

currentUserPermissions:LibraryUserPermissions!

Check current User permissions in a specific Library.

workflow:Workflow!

The Workflow belonging to the given Library.

customMetadataProperties:[CustomMetadataProperty!]!

List of CustomMetadataProperty items belonging to a Library.

licenses:[License]

Retrieve list of all Licenses belonging to this Library.

Search this Library's/Workspace's Assets with fully typed filters. Backed by our search index rather than the primary database — results are eventually consistent, so an asset just created, edited, or deleted can take a few minutes (up to around 10) to be reflected.

assetsByExternalId(
externalId: ID!
limit: Int = 25
cursor: String = null

Fetch Assets in this Library by their externalId. Requires edit access to the Library.

The named people tagged or suggested on this Library's assets, sorted by name. Requires face recognition on the Library.

peopleByIds(
Beta
ids: [ID!]!
): [Person!]!

The given named people of this Library, in the requested order, at most 100 ids. Ids that match no person, deleted and unnamed people, and people not tagged or suggested on the Library's assets are left out. Requires face recognition on the Library.