Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[with-typescript-graphql] fixes breaking changes in graphql-let v0.18.0 #32681

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
cd815b2
Migrate graphql-let v0.18.0 according to the documentation
u-yas Dec 20, 2021
b75fb8c
Merge remote-tracking branch 'origin' into migrate_graphql-let_to_wit…
u-yas Dec 20, 2021
ba797a1
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Dec 22, 2021
1528c05
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Dec 22, 2021
ee639f0
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Dec 23, 2021
29cbfe0
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Dec 23, 2021
c0ceed8
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Dec 24, 2021
37bd4fe
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Dec 26, 2021
247b091
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Dec 27, 2021
eb89edb
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Dec 31, 2021
4c01e60
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Jan 2, 2022
e5e79da
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Jan 3, 2022
24bbbac
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Jan 3, 2022
ede29f9
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Jan 5, 2022
bca72bf
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Jan 9, 2022
2e3db21
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Jan 10, 2022
733787b
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Jan 14, 2022
3906edb
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Jan 19, 2022
5bde8eb
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Jan 20, 2022
fd6b084
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Jan 24, 2022
b7c85f9
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
u-yas Feb 2, 2022
09328b1
Merge branch 'canary' into migrate_graphql-let_to_with-typescript-gra…
ijjk Feb 6, 2022
a36d71b
lint-fix
ijjk Feb 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/with-typescript-graphql/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ yarn-error.log*
__generated__
*.graphql.d.ts
*.graphqls.d.ts
.cache
2 changes: 1 addition & 1 deletion examples/with-typescript-graphql/.graphql-let.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ documents: '**/*.graphql'
plugins:
- typescript-operations
- typescript-react-apollo
cacheDir: __generated__
cacheDir: .cache
2 changes: 1 addition & 1 deletion examples/with-typescript-graphql/lib/resolvers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { QueryResolvers, MutationResolvers } from './type-defs.graphqls'
import { QueryResolvers, MutationResolvers } from '@graphql-types@'
u-yas marked this conversation as resolved.
Show resolved Hide resolved
import { ResolverContext } from './apollo'

const userProfile = {
Expand Down
8 changes: 4 additions & 4 deletions examples/with-typescript-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "^1.17.8",
"@graphql-codegen/import-types-preset": "1.18.2",
"@graphql-codegen/import-types-preset": "^2.1.8",
"@graphql-codegen/plugin-helpers": "^1.17.8",
"@graphql-codegen/typescript": "^1.17.8",
"@graphql-codegen/typescript-operations": "^1.17.8",
Expand All @@ -30,11 +30,11 @@
"@types/react-dom": "^16.9.8",
"@types/react-test-renderer": "^17.0.1",
"babel-jest": "26.3.0",
"graphql-let": "0.x",
"graphql-let": "^0.18.6",
"graphql-tag": "2.11.0",
"jest": "26.4.0",
"react-test-renderer": "^17.0.1",
"typescript": "^3.9.7",
"typescript": "^4.5.4",
"yaml-loader": "0.6.0"
}
}
}
27 changes: 23 additions & 4 deletions examples/with-typescript-graphql/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
Expand All @@ -12,8 +16,23 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"@graphql-types@": [
"node_modules/@types/graphql-let/__generated__/__types__"
]
},
"incremental": true
},
"include": ["next-env.d.ts", "graphql.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"graphql.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules",
".cache"
]
}