From 0f1b9240bbd05b377e868faf78b89b509a3d7537 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 27 Oct 2017 13:24:41 -0400 Subject: ayeee --- graphcool/graphcool.yml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 graphcool/graphcool.yml (limited to 'graphcool/graphcool.yml') 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 + -- cgit v1.3