Skip to content

Commit 4901a1d

Browse files
committed
Merge branch 'support-codegen-v2' into codgenv2
2 parents d3c50f5 + 158d3ba commit 4901a1d

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
},
99
"bugs": "https://github.com/xolvio/chimp/issues",
1010
"dependencies": {
11-
"@graphql-tools/graphql-file-loader": "^6.2.5",
12-
"@graphql-tools/load": "^6.2.5",
13-
"@graphql-tools/merge": "^6.2.5",
11+
"@graphql-tools/graphql-file-loader": "^7.5.5",
12+
"@graphql-tools/load": "^7.7.7",
13+
"@graphql-tools/merge": "^8.3.6",
1414
"@oclif/command": "^1",
1515
"@oclif/config": "^1",
1616
"@oclif/plugin-help": "^3",
1717
"debug": "^4.3.1",
1818
"enquirer": "^2.3.6",
1919
"find-package-json": "^1.2.0",
20-
"graphql": "15.5.1",
20+
"graphql": "16.6.0",
2121
"graphql-tag": "^2.10.3",
2222
"handlebars": "^4.0.12",
2323
"listr2": "3.3.3",
@@ -33,7 +33,7 @@
3333
"@types/node": "^14.14.22",
3434
"chai": "^4.2.0",
3535
"copyfiles": "^2.4.1",
36-
"eslint": "^5.13",
36+
"eslint": "^7.32.0",
3737
"eslint-config-oclif": "^3.1",
3838
"eslint-config-oclif-typescript": "^0.1",
3939
"eslint-config-prettier": "^7.2.0",
@@ -47,7 +47,7 @@
4747
"testdouble-jest": "^2.0.0",
4848
"ts-jest": "^26.4.4",
4949
"ts-node": "^8",
50-
"typescript": "^3.3",
50+
"typescript": "4.4.4",
5151
"wait-on": "^5.2.1"
5252
},
5353
"engines": {

src/generate/runtime-config-helpers/getCodegenConfig.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ module.exports = function ({ contextType } = {}) {
5959
objectIdType: 'string',
6060
federation: true,
6161
mappers,
62+
makeResolverTypeCallable: true,
6263
scalars: {
6364
Upload: 'Promise<GraphQLFileUpload>',
6465
},
@@ -68,16 +69,18 @@ module.exports = function ({ contextType } = {}) {
6869
'typescript-resolvers',
6970
'typescript-operations',
7071
'chimp-graphql-codegen-plugin',
71-
{ add: 'export {GqlContext};' },
72+
{ add: { content: 'export {GqlContext};'} },
7273
{
73-
add: `
74+
add: {
75+
content: `
7476
import { ReadStream } from "fs-capacitor";
7577
interface GraphQLFileUpload {
7678
filename: string;
7779
mimetype: string;
7880
encoding: string;
7981
createReadStream(options?:{encoding?: string, highWaterMark?: number}): ReadStream;
80-
}`,
82+
}`
83+
},
8184
},
8285
],
8386
},

0 commit comments

Comments
 (0)