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
Currently, RelationType.set_relates returns Promise[None]. This is pretty inconvenient, as a lot of the time we then want to perform further operations on the newly created role. Unlike the put methods for creating thing types, there is no parallel for roles, so they need to be gotten with RelationType.get_relates to continue operating on them like so:
Problem to Solve
Currently,
RelationType.set_relates
returnsPromise[None]
. This is pretty inconvenient, as a lot of the time we then want to perform further operations on the newly created role. Unlike theput
methods for creating thing types, there is no parallel for roles, so they need to be gotten withRelationType.get_relates
to continue operating on them like so:Proposed Solution
Make
RelationType.set_relates
returnPromise[RoleType]
instead ofPromise[None]
, like so:The text was updated successfully, but these errors were encountered: