Skip to content

Commit

Permalink
Merge branch 'support-codegen-v2' into codgenv2
Browse files Browse the repository at this point in the history
  • Loading branch information
jmvtrinidad committed Sep 26, 2022
2 parents d3c50f5 + 158d3ba commit 4901a1d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
},
"bugs": "https://github.com/xolvio/chimp/issues",
"dependencies": {
"@graphql-tools/graphql-file-loader": "^6.2.5",
"@graphql-tools/load": "^6.2.5",
"@graphql-tools/merge": "^6.2.5",
"@graphql-tools/graphql-file-loader": "^7.5.5",
"@graphql-tools/load": "^7.7.7",
"@graphql-tools/merge": "^8.3.6",
"@oclif/command": "^1",
"@oclif/config": "^1",
"@oclif/plugin-help": "^3",
"debug": "^4.3.1",
"enquirer": "^2.3.6",
"find-package-json": "^1.2.0",
"graphql": "15.5.1",
"graphql": "16.6.0",
"graphql-tag": "^2.10.3",
"handlebars": "^4.0.12",
"listr2": "3.3.3",
Expand All @@ -33,7 +33,7 @@
"@types/node": "^14.14.22",
"chai": "^4.2.0",
"copyfiles": "^2.4.1",
"eslint": "^5.13",
"eslint": "^7.32.0",
"eslint-config-oclif": "^3.1",
"eslint-config-oclif-typescript": "^0.1",
"eslint-config-prettier": "^7.2.0",
Expand All @@ -47,7 +47,7 @@
"testdouble-jest": "^2.0.0",
"ts-jest": "^26.4.4",
"ts-node": "^8",
"typescript": "^3.3",
"typescript": "4.4.4",
"wait-on": "^5.2.1"
},
"engines": {
Expand Down
9 changes: 6 additions & 3 deletions src/generate/runtime-config-helpers/getCodegenConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module.exports = function ({ contextType } = {}) {
objectIdType: 'string',
federation: true,
mappers,
makeResolverTypeCallable: true,
scalars: {
Upload: 'Promise<GraphQLFileUpload>',
},
Expand All @@ -68,16 +69,18 @@ module.exports = function ({ contextType } = {}) {
'typescript-resolvers',
'typescript-operations',
'chimp-graphql-codegen-plugin',
{ add: 'export {GqlContext};' },
{ add: { content: 'export {GqlContext};'} },
{
add: `
add: {
content: `
import { ReadStream } from "fs-capacitor";
interface GraphQLFileUpload {
filename: string;
mimetype: string;
encoding: string;
createReadStream(options?:{encoding?: string, highWaterMark?: number}): ReadStream;
}`,
}`
},
},
],
},
Expand Down

0 comments on commit 4901a1d

Please sign in to comment.