Skip to content

Commit

Permalink
add GraphQL query "collection"
Browse files Browse the repository at this point in the history
  • Loading branch information
boscohyun committed Oct 23, 2024
1 parent 66253f4 commit 9fd1f9c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Mimir/GraphQL/Queries/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,16 @@ public async Task<RaiderState> GetWorldBossRaiderAsync(
/// </summary>
/// <param name="address">The address of the avatar.</param>
/// <returns>The world information state.</returns>
public async Task<WorldInformationState> GetWorldInformationAsync(Address address, [Service] WorldInformationRepository repo) =>
public async Task<WorldInformationState> GetWorldInformationAsync(
Address address,
[Service] WorldInformationRepository repo) =>
(await repo.GetByAvatarAddressAsync(address)).Object;

/// <summary>
/// Get a collection state by avatar address.
/// </summary>
/// <param name="avatarAddress">The address of the avatar.</param>
/// <returns></returns>
public async Task<CollectionState> GetCollectionAsync(Address avatarAddress, [Service] CollectionRepository repo) =>
(await repo.GetByAddressAsync(avatarAddress)).Object;
}

0 comments on commit 9fd1f9c

Please sign in to comment.