Skip to main content

EntityRelationPaths

This type allows type-safe access to entity relations using strings with dot notation. It works to 2 levels deep.

Example

Ts

In the above example, the type T1 will be a string union of all relations of the Product entity:

  • 'featuredAsset'
  • 'variants'
  • 'variants.options'
  • 'variants.featuredAsset'
  • etc.
Signature
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page