# Resource A resolved URL path resource, containing the type and optional ID. ## Type Definition ```graphql type Resource { type: ResourceKind! id: String alternates: [Alternate] } ``` ## Fields | Field | Type | Description | |-------|------|-------------| | type | `ResourceKind!` | The type of resource this path resolves to. | | id | `String` | The 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 ```graphql query { resourceByPath(path: "/products/example-product") { type id alternates { hreflang url } } } ``` ## Implements This type does not implement any interfaces. ## Related Types - [ResourceKind](/reference/storefront/v1/enums/resource-kind) - [Alternate](/reference/storefront/v1/objects/alternate)