From e0d0baa75ec0bf617f91b6cd779305d4009cae12 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 9 Feb 2018 13:31:39 -0500 Subject: 🆒 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'backend/README.md') 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 + + -- cgit v1.3