# 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 within the storefront. The `type` field indicates what kind of resource the path resolves to using the `ResourceKind` enum. For resources with identifiable entities (such as products or collections), the `id` field contains the unique identifier. System pages like login and cart pages have no associated ID. The `alternates` field provides multilingual URL variants useful for SEO and language switching functionality. ## Example ```graphql { resourceByPath(path: "/products/awesome-jacket") { type id alternates { language path } } } ``` ## Implements None ## Related Types - [ResourceKind](/reference/storefront/1.3.0/enums/resource-kind) - [Alternate](/reference/storefront/1.3.0/objects/alternate)