Skip to Content

Resource

A resolved URL path resource, containing the type and optional ID.

Type Definition

type Resource { type: ResourceKind! id: String alternates: [Alternate] }

Fields

FieldTypeDescription
typeResourceKind!The type of resource this path resolves to.
idStringThe unique identifier of the resource. Null for system pages like login, cart, etc.
alternates[Alternate]Alternate language URLs for this resource, used for hreflang links and language switching.

Relationships

The Resource type represents a resolved URL path and its associated metadata. It contains a type field that indicates what kind of resource the path resolves to (using the ResourceKind enum), an optional id field for resource identification, and an alternates field that provides alternate language versions of the resource for internationalization purposes.

Example

query { resourceByPath(path: "/products/example-product") { type id alternates { hreflang url } } }

Implements

This type does not implement any interfaces.