chore: 增加 User 获取所属角色的接口

oneRain 2019-08-23 16:58:46 +08:00
parent 6969884bd9
commit d339fe9e4e
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ namespace LeanCloud {
public Task<IEnumerable<AVRole>> GetRolesAsync() {
AVQuery<AVRole> query = new AVQuery<AVRole>();
query.WhereRelatedTo(this, "users");
query.WhereEqualTo("users", this);
return query.FindAsync();
}