How do you convert String to Id<T>? #24
-
Trying to |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
We should add a |
Beta Was this translation helpful? Give feedback.
-
Right now I'm using the following code
I hard coded the model id because that is created via codegen and there's no accessor method that I could find. I have an idea of what I would do to add one though. |
Beta Was this translation helpful? Give feedback.
-
I have some meetings now, I will get back to this after. I do think it might be worth exploring whether' ID` as a concept (an opaque, model-tied identifier) holds its weight as such Also, because query methods take |
Beta Was this translation helpful? Give feedback.
It is from the type:
M::Id
usually. I submitted a PR here: #29