diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-02-09 13:31:39 -0500 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-02-09 13:31:39 -0500 |
| commit | e0d0baa75ec0bf617f91b6cd779305d4009cae12 (patch) | |
| tree | 00eb968f49c6586cbc4367053887d0c5e68471b2 /backend/README.md | |
| parent | 19c9683e2126c68cb9d231293162c756d69c51fb (diff) | |
🆒
Diffstat (limited to 'backend/README.md')
| -rw-r--r-- | backend/README.md | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/backend/README.md b/backend/README.md index 7687fd4..e1c8e10 100644 --- a/backend/README.md +++ b/backend/README.md @@ -2,4 +2,20 @@ What are all these files?! What are the steps: -1. + +When you want to add a new function: + +1. Open your `schema.graphql` and add it to the mutatiions +2. Add a mutation resolver to match that new mutation: + + ``` + addToCart(parent, args, ctx, info) { + console.log('ADding an item to cart!'); + }, + ``` +3. Create a client-side Mutation that will accept the arguments and call it + + +### Installing Docker + + |
