Skip to content

Commit c6382f0

Browse files
committed
add gc 1.0 server
1 parent d8ed337 commit c6382f0

27 files changed

+2178
-129
lines changed

server-old/graphcool.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Welcome to Graphcool!
2+
#
3+
# This file is the main config file for your Graphcool Service.
4+
# It's very minimal at this point and uses default values.
5+
# We've included a hello world function here.
6+
# Just run `graphcool deploy` to have the first running Graphcool Service.
7+
#
8+
# Check out some examples:
9+
# https://github.com/graphcool/graphcool/tree/master/examples
10+
#
11+
# Here are the reference docs of this definition format:
12+
# https://docs-next.graph.cool/reference/service-definition/graphcool.yml-foatho8aip
13+
#
14+
# Happy Coding!
15+
16+
17+
# In the types.graphql you define your data schema
18+
types: ./types.graphql
19+
20+
21+
functions:
22+
23+
# added by email-password template: (please uncomment)
24+
25+
signup:
26+
type: resolver
27+
schema: src/email-password/signup.graphql
28+
handler:
29+
code: src/email-password/signup.ts
30+
31+
authenticate:
32+
type: resolver
33+
schema: src/email-password/authenticate.graphql
34+
handler:
35+
code: src/email-password/authenticate.ts
36+
37+
loggedInUser:
38+
type: resolver
39+
schema: src/email-password/loggedInUser.graphql
40+
handler:
41+
code: src/email-password/loggedInUser.ts
42+
43+
hello:
44+
handler:
45+
code: src/hello.js
46+
type: resolver
47+
schema: src/hello.graphql
48+
49+
50+
# Model/Relation permissions are used to limit the API access
51+
# To take the burden of thinking about those while development, we
52+
# preconfigured the wildcard ("*") permission that allows everything
53+
# Read more here:
54+
# https://docs-next.graph.cool/reference/auth/authorization/overview-iegoo0heez
55+
permissions:
56+
- operation: "*"
57+
58+
59+
# Your root tokens used for functions to get full access to the API
60+
# Read more here:
61+
# https://docs-next.graph.cool/reference/auth/authentication/authentication-tokens-eip7ahqu5o
62+
# rootTokens:
63+
# - mytoken
64+

server-old/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "server",
3+
"version": "1.0.0",
4+
"description": "My Graphcool Service",
5+
"dependencies": {
6+
"@types/bcryptjs": "^2.4.1",
7+
"@types/validator": "^6.3.0",
8+
"bcryptjs": "^2.4.3",
9+
"graphcool-lib": "^0.1.0",
10+
"graphql-request": "^1.4.0",
11+
"validator": "^9.0.0"
12+
}
13+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)