Strongly typed Id in f#
Using a primitive type to store ids is inherently problematic. I explore the minimal way of creating a type-strong Id object in f#.
Sep 13, 20222 min read306

Search for a command to run...

Series
I've wanted to learn F#, and want to share observations and solutions along the way - The project is to implement a kanban board microservice via DDD principles, acting as my own domain expert.
Using a primitive type to store ids is inherently problematic. I explore the minimal way of creating a type-strong Id object in f#.

How do you enforce a pure domain model, while allowing clients to search for information related to, but not included in, your domain model?
