Ideas

Give us your best ideas!

Expose link type in a LinkFieldDefinition in Storefront GraphQL

In the Storefront GraphQL it would be great to add a way to detect what type of link a LinkField represents. For example to know if the url is an external url, internal, page, category, etc.

Today the GraphQL only exposes the following properties on a LinkField:

type LinkFieldDefinition {

url: String!

text: String!

}


It would be great to add a new proeprty called type which exposes an enum of what type of pointer it is, or otherwise maybe just an boolean to show it is a general URL (which 99% of the time is an external URL).

  • Christian Norrman
  • Aug 25 2024
  • Attach files