about summary refs log tree commit diff
path: root/assets/punktacja.gql
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-11-28 06:45:33 -0500
committerGitHub <noreply@github.com>2019-11-28 06:45:33 -0500
commite7264fa5a4b8da95f6764adc73d647e173c40271 (patch)
tree589ae2314291c7414942692db582669b1049f058 /assets/punktacja.gql
parente12c489d3ad6111c78c9cb4d4b8ab77b053c49ad (diff)
parentbe3b0d78facd014c5b197438e8c739b0b022d4d6 (diff)
downloadpuszcza-e7264fa5a4b8da95f6764adc73d647e173c40271.tar.gz
puszcza-e7264fa5a4b8da95f6764adc73d647e173c40271.zip
Merge pull request #7 from 19pdh/feature/ranking
Feature/ranking
Diffstat (limited to 'assets/punktacja.gql')
-rw-r--r--assets/punktacja.gql13
1 files changed, 13 insertions, 0 deletions
diff --git a/assets/punktacja.gql b/assets/punktacja.gql
new file mode 100644
index 0000000..3a6a9fa
--- /dev/null
+++ b/assets/punktacja.gql
@@ -0,0 +1,13 @@
+type Troop {
+  name: String
+}
+
+type Points {
+  troop: Troop
+  points: Int
+}
+
+type Query {
+  getPoints: [Points!]
+  getTroopByName(name: String!): [Troop!]
+}