Skip to content

Commit

Permalink
remove firstUser field
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzx86 committed Apr 24, 2024
1 parent 3d6a459 commit 5e360be
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,6 @@ public UserPickerFieldQueryObjectType(IStringLocalizer<UserPickerFieldQueryObjec
return itemResultSet.SelectMany(users => users);
});
});

Field<UserType, User>("firstUser")
.Description(S["the first user"])
.ResolveAsync(resolve =>
{
var userLoader = GetOrAddUserProfileByIdDataLoader(resolve);
return userLoader.LoadAsync(resolve.Source.UserIds.FirstOrDefault()).Then(itemResultSet =>
{
return itemResultSet.FirstOrDefault();
});
});
}

private static IDataLoader<string, IEnumerable<User>> GetOrAddUserProfileByIdDataLoader<T>(IResolveFieldContext<T> context)
Expand Down

0 comments on commit 5e360be

Please sign in to comment.