Skip to content

How to use generated "Indentifier" type? #444

Answered by kristiandupont
karloluis asked this question in Q&A
Discussion options

You must be logged in to vote

When inserting/updating, you have to "convert" your plain string to a CartsId somewhere, simply by casting: const cartsId = '1' as CartsId;.

It was recently requested that the branded id's should be optional, which it seems several people prefer. I just find them incredibly useful.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@karloluis
Comment options

@karloluis
Comment options

@kristiandupont
Comment options

Answer selected by karloluis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants