graphql-codegen-plugin-typescript-swr
Version:
A GraphQL code generator plug-in that automatically generates utility functions for SWR.
36 lines (32 loc) • 827 B
text/typescript
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** 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 User = {
__typename?: 'User';
id: Scalars['Int'];
name: Scalars['String'];
email: Scalars['String'];
};
export type Query = {
__typename?: 'Query';
allUsers: Array<Maybe<User>>;
userById?: Maybe<User>;
/**
* Generates a new answer for th
* guessing game
*/
answer: Array<Scalars['Int']>;
testArr1?: Maybe<Array<Maybe<Scalars['String']>>>;
testArr2: Array<Maybe<Scalars['String']>>;
testArr3: Array<Scalars['String']>;
};
export type QueryUserByIdArgs = {
id: Scalars['Int'];
};