forked from HULKs/mopad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphcool.yml
82 lines (78 loc) · 2.41 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
types: ./server/types.graphql
functions:
## Authentication
signup:
type: resolver
schema: server/src/email-password/signup.graphql
handler:
code: server/src/email-password/signup.ts
authenticate:
type: resolver
schema: server/src/email-password/authenticate.graphql
handler:
code: server/src/email-password/authenticate.ts
loggedInUser:
type: resolver
schema: server/src/email-password/loggedInUser.graphql
handler:
code: server/src/email-password/loggedInUser.ts
## Business Logic
hello:
schema: server/src/hello.graphql
type: resolver
handler:
code: server/src/hello.ts
permissions:
- operation: User.read
authenticated: true
- operation: User.create
authenticated: true
- operation: Team.read
- operation: Team.create
authenticated: true
query: server/src/permissions/isAdmin.graphql
- operation: Team.update
authenticated: true
query: server/src/permissions/isAdmin.graphql
- operation: Team.delete
authenticated: true
query: server/src/permissions/isAdmin.graphql
- operation: Topic.read
authenticated: true
- operation: Topic.create
authenticated: true
- operation: Topic.update
authenticated: true
query: server/src/permissions/isAdminOrAuthor.graphql
- operation: Topic.delete
authenticated: true
query: server/src/permissions/isAdminOrAuthor.graphql
- operation: Location.read
authenticated: true
- operation: Location.create
authenticated: true
query: server/src/permissions/isAdmin.graphql
- operation: Location.update
authenticated: true
query: server/src/permissions/isAdmin.graphql
- operation: Location.delete
authenticated: true
query: server/src/permissions/isAdmin.graphql
- operation: ExpertParticipation.connect
authenticated: true
query: server/src/permissions/isUserParticipation.graphql:expert
- operation: ExpertParticipation.disconnect
authenticated: true
query: server/src/permissions/isUserParticipation.graphql:expert
- operation: NewbieParticipation.connect
authenticated: true
query: server/src/permissions/isUserParticipation.graphql:newbie
- operation: NewbieParticipation.disconnect
authenticated: true
query: server/src/permissions/isUserParticipation.graphql:newbie
- operation: TopicsInLocation.connect
authenticated: true
query: server/src/permissions/isAdmin.graphql
- operation: TopicsInLocation.disconnect
authenticated: true
query: server/src/permissions/isAdmin.graphql