On Friday, September 23, 2016 at 9:44:47 AM UTC+1, Rupert Smith wrote:
>
> type Album =
> Album { name : String, artists : Maybe List Artist }
> | Reference String
>
> type Artist =
> Artist { name : String, albums : Maybe List Album }
> | Reference String
>
Would also make the ids explicit:
type Album =
Album { id : String, name : String, artists : Maybe List Artist }
| Reference String
type Artist =
Artist { id : String, name : String, albums : Maybe List Album }
| Reference String
You'd need the id if you wanted to make an update to an entity on the
server or database.
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.