blob: eb3f0852550f45da26cffd0ec6515d217c6ff563 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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
|