forked from prisma/prisma1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphcool.yml
41 lines (34 loc) · 1016 Bytes
/
graphcool.yml
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
types: ./types.graphql
functions:
# This resolver allows to create a new user with the
# `signupUser`-mutation defined in `signup.graphql`.
signup:
type: resolver
schema: src/signup.graphql
handler:
code:
src: src/signup.js
# This resolver allows to retrieve a node token using the
# `authenticateUser`-mutation defined in `authenticate.graphql`.
authenticate:
type: resolver
schema: src/authenticate.graphql
handler:
code:
src: src/authenticate.js
# This resolver allows to check whether a request belongs to a
# currently authenticated `User` node using the
# `loggedInUser` query defined in `loggedInUser.graphql`.
loggedInUser:
type: resolver
schema: src/loggedInUser.graphql
handler:
code:
src: src/loggedInUser.js
# To learn how to configure permission rules for your Graphcool service,
# check out the `permissions` example.
permissions: []
rootTokens:
- signup
- authenticate
- loggedInUser