Ideas

Give us your best ideas!

 

Merged idea

This idea has been merged into another idea. To comment or vote on this idea, please visit PL-I-479 Storefront GraphQL: resolve pointers, custom data.

Expose link type in a LinkFieldDefinition in Storefront GraphQL Merged

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