UNPKG

create-vite-apollo-fs

Version:

Generate a fullstack project using Apollo GraphQL (node.js, express), graphql-codegen for Types and React (vite)

65 lines (46 loc) 2.08 kB
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]> }; export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never }; export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: { input: string; output: string; } String: { input: string; output: string; } Boolean: { input: boolean; output: boolean; } Int: { input: number; output: number; } Float: { input: number; output: number; } }; export type Mutation = { __typename?: 'Mutation'; addUser: User; }; export type MutationAddUserArgs = { name: Scalars['String']['input']; }; export type Query = { __typename?: 'Query'; hello: Scalars['String']['output']; users: Array<User>; }; export type Subscription = { __typename?: 'Subscription'; greetings: Scalars['String']['output']; }; export type User = { __typename?: 'User'; id: Scalars['ID']['output']; name: Scalars['String']['output']; }; export type AddUserMutationVariables = Exact<{ name: Scalars['String']['input']; }>; export type AddUserMutation = { __typename?: 'Mutation', addUser: { __typename?: 'User', id: string, name: string } }; export type GetHelloQueryVariables = Exact<{ [key: string]: never; }>; export type GetHelloQuery = { __typename?: 'Query', hello: string }; export type GetUsersQueryVariables = Exact<{ [key: string]: never; }>; export type GetUsersQuery = { __typename?: 'Query', users: Array<{ __typename?: 'User', id: string, name: string }> }; export type OnGreetingsSubscriptionVariables = Exact<{ [key: string]: never; }>; export type OnGreetingsSubscription = { __typename?: 'Subscription', greetings: string };