-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathgraphql.ts
More file actions
57 lines (48 loc) · 1.6 KB
/
graphql.ts
File metadata and controls
57 lines (48 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* eslint-disable */
import { DocumentTypeDecoration } from '@graphql-typed-document-node/core';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
String: string;
Boolean: boolean;
Int: number;
Float: number;
};
export type Mutation = {
__typename?: 'Mutation';
echo: Scalars['String'];
};
export type MutationEchoArgs = {
message: Scalars['String'];
};
export type Query = {
__typename?: 'Query';
hello: Scalars['String'];
};
export type HelloQueryQueryVariables = Exact<{ [key: string]: never }>;
export type HelloQueryQuery = { __typename?: 'Query'; hello: string };
export class TypedDocumentString<TResult, TVariables>
extends String
implements DocumentTypeDecoration<TResult, TVariables>
{
__apiType?: DocumentTypeDecoration<TResult, TVariables>['__apiType'];
constructor(private value: string, public __meta__?: { hash: string }) {
super(value);
}
toString(): string & DocumentTypeDecoration<TResult, TVariables> {
return this.value;
}
}
export const HelloQueryDocument = new TypedDocumentString(
`
query HelloQuery {
hello
}
`,
{ hash: '86f01e23de1c770cabbc35b2d87f2e5fd7557b6f' }
) as unknown as TypedDocumentString<HelloQueryQuery, HelloQueryQueryVariables>;