@aleleba/create-node-ts-graphql-server 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleleba/create-node-ts-graphql-server",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Node with Typescript and GraphQL Server",
5
5
  "bin": "./bin/cli.js",
6
6
  "main": "index.js",
@@ -13,10 +13,10 @@ const resolvers = {
13
13
  testMutation: (rootValue, args, context) => ({}),
14
14
  },
15
15
  Test: {
16
- test: (rootValue, args, context) => getTest(rootValue, args, context)
16
+ test: (rootValue, args, context) => getTest({rootValue, args, context})
17
17
  },
18
18
  TestMutation: {
19
- testMutation: (rootValue, args, context) => addText(rootValue, args, context)
19
+ testMutation: (rootValue, args, context) => addText({rootValue, args, context})
20
20
  }
21
21
  };
22
22
 
@@ -3,12 +3,12 @@
3
3
  import { getTestModel, addTextModel } from '../../models';
4
4
 
5
5
  // eslint-disable-next-line
6
- export const getTest = async (rootValue, args, context) => {
6
+ export const getTest = async ({rootValue, args, context}) => {
7
7
  return getTestModel();
8
8
  };
9
9
 
10
10
  // eslint-disable-next-line
11
- export const addText = async (rootValue, args, context) => {
11
+ export const addText = async ({rootValue, args, context}) => {
12
12
  const text = args.text;
13
13
  return addTextModel({ text });
14
14
  };