You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was hoping to find a way to do something like OrganizationMembership.role() so typespecs in other modules can use it. My current workaround is to manually define a role type and have the field use that. Perhaps there is already a way but it's not public surface area?
The text was updated successfully, but these errors were encountered:
That could be a nice feature to have. Not sure the ergonomics, but it could be interesting to automatically generate types for Ecto.Enum types. That would need to be opt-in though, as it has a possibility of conflicting with other types or need to be "prefixed", which might not yield the nicest type names.
I'm looking for a way to access an individual field's type.
Given the following schema:
I was hoping to find a way to do something like
OrganizationMembership.role()
so typespecs in other modules can use it. My current workaround is to manually define arole
type and have the field use that. Perhaps there is already a way but it's not public surface area?The text was updated successfully, but these errors were encountered: