Skip to content

Commit f642461

Browse files
authored
Update deps to fix graphql example (#133)
1 parent 6443194 commit f642461

File tree

3 files changed

+2025
-2594
lines changed

3 files changed

+2025
-2594
lines changed

examples/graphql/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"compile": "tsc"
1010
},
1111
"dependencies": {
12-
"@types/node": "14.0.27",
13-
"graphql": "16.0.1",
14-
"typescript": "4.4.4",
15-
"@graphql-typed-document-node/core": "^3.1.0",
16-
"@graphql-typed-document-node/patch-cli": "^3.0.3",
17-
"@graphql-codegen/typed-document-node": "1.17.9",
18-
"@graphql-codegen/cli": "1.17.8",
19-
"@graphql-codegen/typescript": "1.17.8",
20-
"@graphql-codegen/typescript-operations": "1.17.8"
12+
"@graphql-codegen/cli": "2.4.0",
13+
"@graphql-codegen/typed-document-node": "2.2.2",
14+
"@graphql-codegen/typescript": "2.4.2",
15+
"@graphql-codegen/typescript-operations": "2.2.3",
16+
"@graphql-typed-document-node/core": "^3.1.1",
17+
"@graphql-typed-document-node/patch-cli": "^3.0.9",
18+
"@types/node": "17.0.13",
19+
"graphql": "16.3.0",
20+
"typescript": "4.5.5"
2121
}
2222
}

examples/graphql/typed-document-nodes.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
22
export type Maybe<T> = T | null;
3+
export type InputMaybe<T> = Maybe<T>;
34
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
5+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
6+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
47
/** All built-in and custom scalars, mapped to their actual values */
58
export type Scalars = {
69
ID: string;
@@ -13,8 +16,8 @@ export type Scalars = {
1316
export type ExchangeRate = {
1417
__typename?: 'ExchangeRate';
1518
currency?: Maybe<Scalars['String']>;
16-
rate?: Maybe<Scalars['String']>;
1719
name?: Maybe<Scalars['String']>;
20+
rate?: Maybe<Scalars['String']>;
1821
};
1922

2023
export type Query = {
@@ -32,15 +35,7 @@ export type RatesQueryVariables = Exact<{
3235
}>;
3336

3437

35-
export type RatesQuery = (
36-
{ __typename?: 'Query' }
37-
& {
38-
rates?: Maybe<Array<Maybe<(
39-
{ __typename?: 'ExchangeRate' }
40-
& Pick<ExchangeRate, 'currency' | 'rate'>
41-
)>>>
42-
}
43-
);
38+
export type RatesQuery = { __typename?: 'Query', rates?: Array<{ __typename?: 'ExchangeRate', currency?: string | null, rate?: string | null } | null> | null };
4439

4540

46-
export const RatesDocument: DocumentNode<RatesQuery, RatesQueryVariables> = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "rates" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "currency" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }, "directives": [] }], "directives": [], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "rates" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "currency" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "currency" } } }], "directives": [], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currency" }, "arguments": [], "directives": [] }, { "kind": "Field", "name": { "kind": "Name", "value": "rate" }, "arguments": [], "directives": [] }] } }] } }] };
41+
export const RatesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"rates"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"currency"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rates"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"currency"},"value":{"kind":"Variable","name":{"kind":"Name","value":"currency"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}}]}}]} as unknown as DocumentNode<RatesQuery, RatesQueryVariables>;

0 commit comments

Comments
 (0)