-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2605 from planetarium/feature/gql/last-cleared-stage
Introduce new GQL: lastClearedStage
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
NineChronicles.Headless/GraphTypes/States/Models/World/ClearedStageType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using GraphQL.Types; | ||
|
||
namespace NineChronicles.Headless.GraphTypes.States.Models.World; | ||
|
||
public class ClearedStageType : ObjectGraphType<(int WorldId, int StageId)> | ||
{ | ||
public ClearedStageType() | ||
{ | ||
Field<NonNullGraphType<IntGraphType>>("worldId", resolve: context => context.Source.WorldId); | ||
Field<NonNullGraphType<IntGraphType>>("stageId", resolve: context => context.Source.StageId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters