diff options
| author | Fuwn <[email protected]> | 2022-03-20 01:28:42 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-20 01:28:42 -0700 |
| commit | 03f2c8e35ba70c9d9496fd5ad5403520f7ebdc53 (patch) | |
| tree | 568e508aff6db6325719abcb2c601520264c5de4 /src/schema.js | |
| download | graphql-api-03f2c8e35ba70c9d9496fd5ad5403520f7ebdc53.tar.xz graphql-api-03f2c8e35ba70c9d9496fd5ad5403520f7ebdc53.zip | |
feat: 0.1.0 :star:
Diffstat (limited to 'src/schema.js')
| -rw-r--r-- | src/schema.js | 14 |
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] + } +`; |