# Link A navigation link including its URL, title, type, and related child links. ## Type Definition ```graphql type Link { levels: Int links: [Link] title: String type: String url: String target: String product: Product productGroup: ProductGroup page: Page article: Article } ``` ## Fields | Field | Type | Description | |-------|------|-------------| | levels | Int | The maximum depth of nested child links below this link. | | links | [Link] | The list of child links for this link. Each child link can itself have further children, forming a hierarchy. | | title | String | The display name of the link, typically shown as the link's label in navigation components. | | type | String | The type of object this link points to, such as 'product', 'category', 'page', or 'article'. | | url | String | The URL that this link points to. This can be an internal or external address. | | target | String | The target attribute for the link, indicating how the link should be opened (e.g., in a new tab). | | product | Product | The product object associated with this link, if the link points to a product. | | productGroup | ProductGroup | The category object associated with this link, if the link points to a category. | | page | Page | The page object associated with this link, if the link points to a page. | | article | Article | The article object associated with this link, if the link points to an article. | ## Relationships The Link type represents a hierarchical navigation structure. It can point to various content types in the system through its optional relationship fields: Product, ProductGroup, Page, and Article. Links can contain child links through the `links` field, allowing for nested navigation hierarchies with configurable depth through the `levels` field. ## Example ```graphql { title url type target levels links { title url type } product { id name } productGroup { id name } } ``` ## Implements None ## Related Types - [Link](/reference/storefront/1.3.0/objects/link) - [Product](/reference/storefront/1.3.0/objects/product) - [ProductGroup](/reference/storefront/1.3.0/objects/product-group) - [Page](/reference/storefront/1.3.0/objects/page) - [Article](/reference/storefront/1.3.0/objects/article)