From b8459b26f131bbc993bfb7f4fe6a5f539334a77f Mon Sep 17 00:00:00 2001 From: Kezz Date: Thu, 2 May 2024 17:32:11 +0100 Subject: [PATCH] feature: Include information about progress to next crown level and evolution (#1) --- schema.graphqls | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/schema.graphqls b/schema.graphqls index 399dae8..00d2a96 100644 --- a/schema.graphqls +++ b/schema.graphqls @@ -41,6 +41,15 @@ enum TrophyCategory { SKILL } +"Data for types that track some form of progression." +type ProgressionData { + "The amount obtained." + obtained: Int! + + "The amount that can be obtained." + obtainable: Int! +} + "Data on the amount of trophies a user has/can have." type TrophyData { "The amount of trophies obtained." @@ -58,6 +67,12 @@ type CrownLevel { "The overall Crown Level." level: Int! + "The next level that the crown will evolve, if any." + nextEvolutionLevel: Int + + "The progress the player is making towards their next level, if any." + nextLevelProgress: ProgressionData + "The amount of trophies the player has." trophies( category: TrophyCategory = null