Resource
A resolved URL path resource, containing the type and optional ID.
Type Definition
type Resource {
type: ResourceKind!
id: String
alternates: [Alternate]
}Fields
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.