createLayoutLibraryItem
Save to Library / Save as Template into the caller's own Library. A resolver rather than @create
so a folder from the wrong tree — which the classic Add to Library picker, being builder-keyed, can
hand over — can be re-filed into its twin. Refuses Save as Template on a classic-builder product, and a new-builder
block saved into a classic product's Library.
createLayoutLibraryItem(
input: CreateLayoutLibraryItemInput!
): LayoutLibraryItem
Arguments
createLayoutLibraryItem.input ● CreateLayoutLibraryItemInput! non-null input
Type
LayoutLibraryItem object
A node in the unified Layout Library.
The GraphQL NAME is unchanged on purpose. This type, its inputs and its mutations are called
LayoutLibraryItem across the front end, and the shape the client sees is the same shape —
so repointing the model is a backend move rather than a coordinated rename of both halves.
item_type_id keeps its wire name for the same reason and is mapped to the node_type_id
column; the VALUES are the same enum.
categories is retired (§2.5): folders do its one job now, and the node table has no such column.


