Files
medusa-store/.changeset/quiet-spiders-join.md
Patrick 826d4bedfe feat(codegen,types): SetRelation on expanded types (#3477)
## What

On expanded relations, mutate type using SetRelation, an alias for SetRequired with SetNonNullable.

## Why

Simplifies implementation in client code.

## How

* Export SetRelation type util
* Update codegen template

Extra scope:

* Improve codegen error handling when processing x-expanded-relations
* Add `eager` sub-categorization to x-expanded-relations to highlight relations that are loaded using TypeORM eager.
2023-03-15 11:29:21 +00:00

138 B

@medusajs/openapi-typescript-codegen, @medusajs/client-types
@medusajs/openapi-typescript-codegen @medusajs/client-types
minor minor

feat(codegen,types): SetRelation on expanded types