JsonLdGraphConfig

Interface

The JSON-LD declared at one cascade level (site, category, page or article). To render a page, read its resolved structuredData.graph instead.

Property

Type

Optional

Description

exclusions

string[]

No

@id values of parent-level nodes this level drops, including the reserved auto: ids of<br>the nodes Lynkow adds, such as auto:article. Empty array when none is dropped.

graph

JsonLdNode[]

No

Nodes declared at this level, in output order. Empty array when none is declared.


JsonLdNode

Interface

A JSON-LD node as declared at one level of the structured data cascade (site, category, page or article). The public reads return the resolved nodes, with @context and @id added, under structuredData.graph.

Property

Type

Optional

Description

data

Record<string, unknown>

No

Node payload. For preset, the preset's fields, unknown keys ignored. For custom, the<br>full schema.org object without @context and @id, which the server adds.

id

string

No

Node id, generated by the server when omitted. The resolved graph turns it into<br><site-url>#<id> or <page-url>#<id> depending on JsonLdNode.scope. Never starts with auto:.

scope

"site" | "page"

Yes

Base of the resolved @id: 'site' (<site-url>#<id>) or 'page' (<page-url>#<id>).<br>When omitted, site at site or category level and page at page or article level.

source

JsonLdNodeSource

No

Whether the node comes from a Lynkow preset or from raw JSON-LD.

type

string

No

schema.org @type, such as 'Organization' or 'Product'. Any type is accepted; a type<br>with no Lynkow preset passes through with source: 'custom'.


JsonLdNodeSource

TypeAlias

Origin of a JSON-LD node: preset for a node built from a Lynkow preset (Organization, LocalBusiness, Product...), whose missing fields the server fills from the page; custom for a raw schema.org object passed through as written.

TypeScript
type JsonLdNodeSource = "preset" | "custom"