aboutsummaryrefslogtreecommitdiff
path: root/src/schema.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema.js')
-rw-r--r--src/schema.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/schema.js b/src/schema.js
new file mode 100644
index 0000000..f5714ba
--- /dev/null
+++ b/src/schema.js
@@ -0,0 +1,14 @@
+const { gql } = require("apollo-server-cloudflare");
+
+module.exports = gql`
+ type Random {
+ language: String!
+ image: String!
+ }
+
+ type Query {
+ random: Random
+ languages: [String]
+ language(language: String!): [String]
+ }
+`;