UNPKG

graphql-codegen-plugin-typescript-swr

Version:

A GraphQL code generator plug-in that automatically generates utility functions for SWR.

28 lines (24 loc) 590 B
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 Query = { __typename?: 'Query'; allUsers: Array<Maybe<User>>; userById: Maybe<User>; }; export type QueryUserByIdArgs = { id: Scalars['Int']; }; export type User = { __typename?: 'User'; id: Scalars['Int']; name: Scalars['String']; email: Scalars['String']; };