summaryrefslogtreecommitdiffstats
path: root/graphcool/graphcool.yml
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2017-10-27 13:24:41 -0400
committerWes Bos <wesbos@gmail.com>2017-10-27 13:24:41 -0400
commit0f1b9240bbd05b377e868faf78b89b509a3d7537 (patch)
tree1974b4d5a59f1843f64789b5536c32606a097ba0 /graphcool/graphcool.yml
parentacdfa2840f867e686471a8e9ac3f29353fab7dd1 (diff)
ayeee
Diffstat (limited to 'graphcool/graphcool.yml')
-rw-r--r--graphcool/graphcool.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/graphcool/graphcool.yml b/graphcool/graphcool.yml
new file mode 100644
index 0000000..eb3f085
--- /dev/null
+++ b/graphcool/graphcool.yml
@@ -0,0 +1,56 @@
+# Welcome to Graphcool!
+#
+# This file is the main config file for your Graphcool Service.
+# It's very minimal at this point and uses default values.
+# We've included a hello world function here.
+# Just run `graphcool deploy` to have the first running Graphcool Service.
+#
+# Check out some examples:
+# https://github.com/graphcool/graphcool/tree/master/examples
+#
+# Here are the reference docs of this definition format:
+# https://docs-next.graph.cool/reference/service-definition/graphcool.yml-foatho8aip
+#
+# Happy Coding!
+
+
+# In the types.graphql you define your data schema
+types: ./types.graphql
+
+
+functions:
+
+# added by auth0 template: (please uncomment)
+#
+ authenticate:
+ handler:
+ code:
+ src: ./src/auth0/auth0Authentication.js
+ environment:
+ AUTH0_DOMAIN: wesbos.auth0.com
+ AUTH0_API_IDENTIFIER: https://wesbos.auth0.com/api/v2/
+ type: resolver
+ schema: ./src/auth0/auth0Authentication.graphql
+
+ createCharge:
+ handler:
+ code: src/createCharge.js
+ type: operationBefore
+ operation: Order.create
+
+
+# Model/Relation permissions are used to limit the API access
+# To take the burden of thinking about those while development, we
+# preconfigured the wildcard ("*") permission that allows everything
+# Read more here:
+# https://docs-next.graph.cool/reference/auth/authorization/overview-iegoo0heez
+permissions:
+- operation: "*"
+
+
+# Your root tokens used for functions to get full access to the API
+# Read more here:
+# https://docs-next.graph.cool/reference/auth/authentication/authentication-tokens-eip7ahqu5o
+# rootTokens:
+# - mytoken
+