We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The documentation regarding parsing ids from prefixed strings (like user_01h455vb4pex5vsknk084sn02q) states it can be parsed with:
val userId: UserId = typeId.parse("user_01h455vb4pex5vsknk084sn02q")
However, if I paste the exact code (where UserId is typealias UserId = Id) it gives s compile time error:
Initializer type mismatch: expected 'UserId', actual 'earth.adi.typeid.RawId'.
I think the example should be (by using the entity User as the type):
val userId3: UserId = typeId.parse("user_01h455vb4pex5vsknk084sn02q")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The documentation regarding parsing ids from prefixed strings (like user_01h455vb4pex5vsknk084sn02q) states it can be parsed with:
val userId: UserId = typeId.parse("user_01h455vb4pex5vsknk084sn02q")
However, if I paste the exact code (where UserId is typealias UserId = Id) it gives s compile time error:
Initializer type mismatch: expected 'UserId', actual 'earth.adi.typeid.RawId'.
I think the example should be (by using the entity User as the type):
val userId3: UserId = typeId.parse("user_01h455vb4pex5vsknk084sn02q")
The text was updated successfully, but these errors were encountered: