update medal operation, create fragment
All checks were successful
Tests / Tests (pull_request) Successful in 16s

This commit is contained in:
2024-11-21 12:18:17 -08:00
parent ac1fceb648
commit 034facebf3
2 changed files with 89 additions and 116 deletions

View File

@@ -1,84 +1,80 @@
fragment MedalFields on MedalGQL {
count
nickname
}
query getMedals($scope: MedalScope!, $userId: Int) {
getMedals(scope: $scope, userId: $userId) {
distanceOver66 {
count
nickname
...MedalFields
}
distanceOver78 {
count
nickname
...MedalFields
}
distanceOver90 {
count
nickname
...MedalFields
}
runLength3 {
count
nickname
...MedalFields
}
runLength5 {
count
nickname
...MedalFields
}
runLength8 {
count
nickname
...MedalFields
}
runLength10 {
count
nickname
...MedalFields
}
runLength15 {
count
nickname
...MedalFields
}
runLength20 {
count
nickname
...MedalFields
}
runLength25 {
count
nickname
...MedalFields
}
runLength30 {
count
nickname
...MedalFields
}
runLength40 {
count
nickname
...MedalFields
}
runLength50 {
count
nickname
}
totalMakes25 {
count
nickname
}
totalMakes50 {
count
nickname
}
totalMakes75 {
count
nickname
...MedalFields
}
totalMakes100 {
count
nickname
...MedalFields
}
totalMakes200 {
count
nickname
# missing assets
# totalMakes500 {
# ...MedalFields
# }
# totalMakes1000 {
# ...MedalFields
# }
# totalMakes5000 {
# ...MedalFields
# }
# totalMakes10000 {
# ...MedalFields
# }
dailyMakes50 {
...MedalFields
}
totalMakes300 {
count
nickname
dailyMakes100 {
...MedalFields
}
totalMakes400 {
count
nickname
dailyMakes150 {
...MedalFields
}
dailyMakes200 {
...MedalFields
}
# missing asset
# dailyMakes250 {
# ...MedalFields
# }
}
}