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 10:36:12 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-11-28 10:36:12 +0100
commit8da7dad19ed454831b63d51058dd22550b9ac10c (patch)
tree22e5f94070867453a16ec7c53329d3e0a941e7e3 /assets/punktacja.gql
parentfbdce0b0a1cefb88c6bac247db04af25a43c284f (diff)
downloadpuszcza-8da7dad19ed454831b63d51058dd22550b9ac10c.tar.gz
puszcza-8da7dad19ed454831b63d51058dd22550b9ac10c.zip
Add database connection
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!]
+}