|
|
|
@@ -0,0 +1,479 @@
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
import { TypedDocumentNode as DocumentNode } 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]> };
|
|
|
|
|
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; }
|
|
|
|
|
/** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.This scalar is serialized to a string in ISO 8601 format and parsed from a string in ISO 8601 format. */
|
|
|
|
|
DateTimeISO: { input: any; output: any; }
|
|
|
|
|
/** The javascript `Date` as integer. Type represents date and time as number of milliseconds from start of UNIX epoch. */
|
|
|
|
|
Timestamp: { input: any; output: any; }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type DateTimeFilter = {
|
|
|
|
|
equals?: InputMaybe<Scalars['DateTimeISO']['input']>;
|
|
|
|
|
gt?: InputMaybe<Scalars['DateTimeISO']['input']>;
|
|
|
|
|
gte?: InputMaybe<Scalars['DateTimeISO']['input']>;
|
|
|
|
|
in?: InputMaybe<Array<Scalars['DateTimeISO']['input']>>;
|
|
|
|
|
lt?: InputMaybe<Scalars['DateTimeISO']['input']>;
|
|
|
|
|
lte?: InputMaybe<Scalars['DateTimeISO']['input']>;
|
|
|
|
|
not?: InputMaybe<NestedDateTimeFilter>;
|
|
|
|
|
notIn?: InputMaybe<Array<Scalars['DateTimeISO']['input']>>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type FieldError = {
|
|
|
|
|
__typename?: 'FieldError';
|
|
|
|
|
field?: Maybe<Scalars['String']['output']>;
|
|
|
|
|
message: Scalars['String']['output'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type IntFilter = {
|
|
|
|
|
equals?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
gt?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
gte?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
|
|
|
lt?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
lte?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
not?: InputMaybe<NestedIntFilter>;
|
|
|
|
|
notIn?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type Mutation = {
|
|
|
|
|
__typename?: 'Mutation';
|
|
|
|
|
createPost: PostResponse;
|
|
|
|
|
deletePost: Scalars['Boolean']['output'];
|
|
|
|
|
downvote?: Maybe<Post>;
|
|
|
|
|
forgotPassword: ResetPasswordResponse;
|
|
|
|
|
login: UserResponse;
|
|
|
|
|
logout: Scalars['Boolean']['output'];
|
|
|
|
|
register: UserResponse;
|
|
|
|
|
removeDownvote?: Maybe<Post>;
|
|
|
|
|
removeUpvote?: Maybe<Post>;
|
|
|
|
|
resetPassword: ResetPasswordResponse;
|
|
|
|
|
updatePost: PostResponse;
|
|
|
|
|
upvote?: Maybe<Post>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MutationCreatePostArgs = {
|
|
|
|
|
input: PostInput;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MutationDeletePostArgs = {
|
|
|
|
|
id: Scalars['String']['input'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MutationDownvoteArgs = {
|
|
|
|
|
postID: Scalars['String']['input'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MutationForgotPasswordArgs = {
|
|
|
|
|
email: Scalars['String']['input'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MutationLoginArgs = {
|
|
|
|
|
input: UsernamePasswordInput;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MutationRegisterArgs = {
|
|
|
|
|
input: UsernamePasswordInput;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MutationRemoveDownvoteArgs = {
|
|
|
|
|
postID: Scalars['String']['input'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MutationRemoveUpvoteArgs = {
|
|
|
|
|
postID: Scalars['String']['input'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MutationResetPasswordArgs = {
|
|
|
|
|
newPassword: Scalars['String']['input'];
|
|
|
|
|
token: Scalars['String']['input'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MutationUpdatePostArgs = {
|
|
|
|
|
content?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
id: Scalars['String']['input'];
|
|
|
|
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MutationUpvoteArgs = {
|
|
|
|
|
postID: Scalars['String']['input'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type NestedDateTimeFilter = {
|
|
|
|
|
equals?: InputMaybe<Scalars['DateTimeISO']['input']>;
|
|
|
|
|
gt?: InputMaybe<Scalars['DateTimeISO']['input']>;
|
|
|
|
|
gte?: InputMaybe<Scalars['DateTimeISO']['input']>;
|
|
|
|
|
in?: InputMaybe<Array<Scalars['DateTimeISO']['input']>>;
|
|
|
|
|
lt?: InputMaybe<Scalars['DateTimeISO']['input']>;
|
|
|
|
|
lte?: InputMaybe<Scalars['DateTimeISO']['input']>;
|
|
|
|
|
not?: InputMaybe<NestedDateTimeFilter>;
|
|
|
|
|
notIn?: InputMaybe<Array<Scalars['DateTimeISO']['input']>>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type NestedIntFilter = {
|
|
|
|
|
equals?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
gt?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
gte?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
|
|
|
lt?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
lte?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
not?: InputMaybe<NestedIntFilter>;
|
|
|
|
|
notIn?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type NestedStringFilter = {
|
|
|
|
|
contains?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
endsWith?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
equals?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
gt?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
gte?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
|
|
|
lt?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
lte?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
not?: InputMaybe<NestedStringFilter>;
|
|
|
|
|
notIn?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
|
|
|
startsWith?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type NestedStringNullableFilter = {
|
|
|
|
|
contains?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
endsWith?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
equals?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
gt?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
gte?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
|
|
|
lt?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
lte?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
not?: InputMaybe<NestedStringNullableFilter>;
|
|
|
|
|
notIn?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
|
|
|
startsWith?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type Post = {
|
|
|
|
|
__typename?: 'Post';
|
|
|
|
|
author: User;
|
|
|
|
|
authorID: Scalars['String']['output'];
|
|
|
|
|
content: Scalars['String']['output'];
|
|
|
|
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
|
|
|
downvoted?: Maybe<Scalars['Boolean']['output']>;
|
|
|
|
|
id: Scalars['String']['output'];
|
|
|
|
|
points: Scalars['Int']['output'];
|
|
|
|
|
snippet: Scalars['String']['output'];
|
|
|
|
|
title?: Maybe<Scalars['String']['output']>;
|
|
|
|
|
updatedAt: Scalars['DateTimeISO']['output'];
|
|
|
|
|
upvoted?: Maybe<Scalars['Boolean']['output']>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type PostInput = {
|
|
|
|
|
content: Scalars['String']['input'];
|
|
|
|
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type PostListRelationFilter = {
|
|
|
|
|
every?: InputMaybe<PostWhereInput>;
|
|
|
|
|
none?: InputMaybe<PostWhereInput>;
|
|
|
|
|
some?: InputMaybe<PostWhereInput>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type PostResponse = {
|
|
|
|
|
__typename?: 'PostResponse';
|
|
|
|
|
errors?: Maybe<Array<FieldError>>;
|
|
|
|
|
post?: Maybe<Post>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type PostWhereInput = {
|
|
|
|
|
AND?: InputMaybe<Array<PostWhereInput>>;
|
|
|
|
|
NOT?: InputMaybe<Array<PostWhereInput>>;
|
|
|
|
|
OR?: InputMaybe<Array<PostWhereInput>>;
|
|
|
|
|
author?: InputMaybe<UserRelationFilter>;
|
|
|
|
|
authorID?: InputMaybe<StringFilter>;
|
|
|
|
|
content?: InputMaybe<StringFilter>;
|
|
|
|
|
createdAt?: InputMaybe<DateTimeFilter>;
|
|
|
|
|
id?: InputMaybe<StringFilter>;
|
|
|
|
|
points?: InputMaybe<IntFilter>;
|
|
|
|
|
title?: InputMaybe<StringNullableFilter>;
|
|
|
|
|
updatedAt?: InputMaybe<DateTimeFilter>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type Query = {
|
|
|
|
|
__typename?: 'Query';
|
|
|
|
|
checkResetPasswordToken: Scalars['Boolean']['output'];
|
|
|
|
|
me?: Maybe<User>;
|
|
|
|
|
post?: Maybe<Post>;
|
|
|
|
|
posts: Array<Post>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type QueryCheckResetPasswordTokenArgs = {
|
|
|
|
|
token: Scalars['String']['input'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type QueryPostArgs = {
|
|
|
|
|
id: Scalars['String']['input'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type QueryPostsArgs = {
|
|
|
|
|
cursor?: InputMaybe<Scalars['Timestamp']['input']>;
|
|
|
|
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export enum QueryMode {
|
|
|
|
|
Default = 'default',
|
|
|
|
|
Insensitive = 'insensitive'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ResetPasswordResponse = {
|
|
|
|
|
__typename?: 'ResetPasswordResponse';
|
|
|
|
|
errors?: Maybe<Array<FieldError>>;
|
|
|
|
|
message?: Maybe<Scalars['String']['output']>;
|
|
|
|
|
messageType?: Maybe<Scalars['String']['output']>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type StringFilter = {
|
|
|
|
|
contains?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
endsWith?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
equals?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
gt?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
gte?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
|
|
|
lt?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
lte?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
mode?: InputMaybe<QueryMode>;
|
|
|
|
|
not?: InputMaybe<NestedStringFilter>;
|
|
|
|
|
notIn?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
|
|
|
startsWith?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type StringNullableFilter = {
|
|
|
|
|
contains?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
endsWith?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
equals?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
gt?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
gte?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
|
|
|
lt?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
lte?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
mode?: InputMaybe<QueryMode>;
|
|
|
|
|
not?: InputMaybe<NestedStringNullableFilter>;
|
|
|
|
|
notIn?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
|
|
|
startsWith?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type User = {
|
|
|
|
|
__typename?: 'User';
|
|
|
|
|
_count?: Maybe<UserCount>;
|
|
|
|
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
|
|
|
email?: Maybe<Scalars['String']['output']>;
|
|
|
|
|
id: Scalars['String']['output'];
|
|
|
|
|
updatedAt: Scalars['DateTimeISO']['output'];
|
|
|
|
|
username: Scalars['String']['output'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type UserCount = {
|
|
|
|
|
__typename?: 'UserCount';
|
|
|
|
|
Post: Scalars['Int']['output'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type UserCountPostArgs = {
|
|
|
|
|
where?: InputMaybe<PostWhereInput>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type UserRelationFilter = {
|
|
|
|
|
is?: InputMaybe<UserWhereInput>;
|
|
|
|
|
isNot?: InputMaybe<UserWhereInput>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type UserResponse = {
|
|
|
|
|
__typename?: 'UserResponse';
|
|
|
|
|
errors?: Maybe<Array<FieldError>>;
|
|
|
|
|
user?: Maybe<User>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type UserWhereInput = {
|
|
|
|
|
AND?: InputMaybe<Array<UserWhereInput>>;
|
|
|
|
|
NOT?: InputMaybe<Array<UserWhereInput>>;
|
|
|
|
|
OR?: InputMaybe<Array<UserWhereInput>>;
|
|
|
|
|
Post?: InputMaybe<PostListRelationFilter>;
|
|
|
|
|
createdAt?: InputMaybe<DateTimeFilter>;
|
|
|
|
|
email?: InputMaybe<StringNullableFilter>;
|
|
|
|
|
id?: InputMaybe<StringFilter>;
|
|
|
|
|
password?: InputMaybe<StringFilter>;
|
|
|
|
|
updatedAt?: InputMaybe<DateTimeFilter>;
|
|
|
|
|
username?: InputMaybe<StringFilter>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type UsernamePasswordInput = {
|
|
|
|
|
email?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
password: Scalars['String']['input'];
|
|
|
|
|
username: Scalars['String']['input'];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type RegularErrorFragment = { __typename?: 'FieldError', field?: string | null, message: string };
|
|
|
|
|
|
|
|
|
|
export type RegularPostFragment = { __typename?: 'Post', id: string, authorID: string, title?: string | null, content: string, createdAt: any, updatedAt: any, snippet: string, points: number, upvoted?: boolean | null, downvoted?: boolean | null, author: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } };
|
|
|
|
|
|
|
|
|
|
export type RegularPostResponseFragment = { __typename?: 'PostResponse', errors?: Array<{ __typename?: 'FieldError', field?: string | null, message: string }> | null, post?: { __typename?: 'Post', id: string, authorID: string, title?: string | null, content: string, createdAt: any, updatedAt: any, snippet: string, points: number, upvoted?: boolean | null, downvoted?: boolean | null, author: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } } | null };
|
|
|
|
|
|
|
|
|
|
export type RegularUserFragment = { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any };
|
|
|
|
|
|
|
|
|
|
export type RegularUserResponseFragment = { __typename?: 'UserResponse', errors?: Array<{ __typename?: 'FieldError', field?: string | null, message: string }> | null, user?: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } | null };
|
|
|
|
|
|
|
|
|
|
export type CreatePostMutationVariables = Exact<{
|
|
|
|
|
input: PostInput;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type CreatePostMutation = { __typename?: 'Mutation', createPost: { __typename?: 'PostResponse', errors?: Array<{ __typename?: 'FieldError', field?: string | null, message: string }> | null, post?: { __typename?: 'Post', id: string, authorID: string, title?: string | null, content: string, createdAt: any, updatedAt: any, snippet: string, points: number, upvoted?: boolean | null, downvoted?: boolean | null, author: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } } | null } };
|
|
|
|
|
|
|
|
|
|
export type DeletePostMutationVariables = Exact<{
|
|
|
|
|
id: Scalars['String']['input'];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type DeletePostMutation = { __typename?: 'Mutation', deletePost: boolean };
|
|
|
|
|
|
|
|
|
|
export type DownvoteMutationVariables = Exact<{
|
|
|
|
|
postID: Scalars['String']['input'];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type DownvoteMutation = { __typename?: 'Mutation', downvote?: { __typename?: 'Post', id: string, authorID: string, title?: string | null, content: string, createdAt: any, updatedAt: any, snippet: string, points: number, upvoted?: boolean | null, downvoted?: boolean | null, author: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } } | null };
|
|
|
|
|
|
|
|
|
|
export type ForgotPasswordMutationVariables = Exact<{
|
|
|
|
|
email: Scalars['String']['input'];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type ForgotPasswordMutation = { __typename?: 'Mutation', forgotPassword: { __typename?: 'ResetPasswordResponse', message?: string | null, messageType?: string | null, errors?: Array<{ __typename?: 'FieldError', field?: string | null, message: string }> | null } };
|
|
|
|
|
|
|
|
|
|
export type LoginMutationVariables = Exact<{
|
|
|
|
|
input: UsernamePasswordInput;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type LoginMutation = { __typename?: 'Mutation', login: { __typename?: 'UserResponse', errors?: Array<{ __typename?: 'FieldError', field?: string | null, message: string }> | null, user?: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } | null } };
|
|
|
|
|
|
|
|
|
|
export type LogoutMutationVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type LogoutMutation = { __typename?: 'Mutation', logout: boolean };
|
|
|
|
|
|
|
|
|
|
export type RegisterMutationVariables = Exact<{
|
|
|
|
|
input: UsernamePasswordInput;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type RegisterMutation = { __typename?: 'Mutation', register: { __typename?: 'UserResponse', errors?: Array<{ __typename?: 'FieldError', field?: string | null, message: string }> | null, user?: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } | null } };
|
|
|
|
|
|
|
|
|
|
export type RemoveDownvoteMutationVariables = Exact<{
|
|
|
|
|
postID: Scalars['String']['input'];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type RemoveDownvoteMutation = { __typename?: 'Mutation', removeDownvote?: { __typename?: 'Post', id: string, authorID: string, title?: string | null, content: string, createdAt: any, updatedAt: any, snippet: string, points: number, upvoted?: boolean | null, downvoted?: boolean | null, author: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } } | null };
|
|
|
|
|
|
|
|
|
|
export type RemoveUpvoteMutationVariables = Exact<{
|
|
|
|
|
postID: Scalars['String']['input'];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type RemoveUpvoteMutation = { __typename?: 'Mutation', removeUpvote?: { __typename?: 'Post', id: string, authorID: string, title?: string | null, content: string, createdAt: any, updatedAt: any, snippet: string, points: number, upvoted?: boolean | null, downvoted?: boolean | null, author: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } } | null };
|
|
|
|
|
|
|
|
|
|
export type ResetPasswordMutationVariables = Exact<{
|
|
|
|
|
newPassword: Scalars['String']['input'];
|
|
|
|
|
token: Scalars['String']['input'];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type ResetPasswordMutation = { __typename?: 'Mutation', resetPassword: { __typename?: 'ResetPasswordResponse', message?: string | null, messageType?: string | null, errors?: Array<{ __typename?: 'FieldError', field?: string | null, message: string }> | null } };
|
|
|
|
|
|
|
|
|
|
export type UpdatePostMutationVariables = Exact<{
|
|
|
|
|
id: Scalars['String']['input'];
|
|
|
|
|
title: Scalars['String']['input'];
|
|
|
|
|
content: Scalars['String']['input'];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type UpdatePostMutation = { __typename?: 'Mutation', updatePost: { __typename?: 'PostResponse', errors?: Array<{ __typename?: 'FieldError', field?: string | null, message: string }> | null, post?: { __typename?: 'Post', id: string, authorID: string, title?: string | null, content: string, createdAt: any, updatedAt: any, snippet: string, points: number, upvoted?: boolean | null, downvoted?: boolean | null, author: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } } | null } };
|
|
|
|
|
|
|
|
|
|
export type UpvoteMutationVariables = Exact<{
|
|
|
|
|
postID: Scalars['String']['input'];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type UpvoteMutation = { __typename?: 'Mutation', upvote?: { __typename?: 'Post', id: string, authorID: string, title?: string | null, content: string, createdAt: any, updatedAt: any, snippet: string, points: number, upvoted?: boolean | null, downvoted?: boolean | null, author: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } } | null };
|
|
|
|
|
|
|
|
|
|
export type CheckResetPasswordTokenQueryVariables = Exact<{
|
|
|
|
|
token: Scalars['String']['input'];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type CheckResetPasswordTokenQuery = { __typename?: 'Query', checkResetPasswordToken: boolean };
|
|
|
|
|
|
|
|
|
|
export type MeQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type MeQuery = { __typename?: 'Query', me?: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } | null };
|
|
|
|
|
|
|
|
|
|
export type PostQueryVariables = Exact<{
|
|
|
|
|
id: Scalars['String']['input'];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PostQuery = { __typename?: 'Query', post?: { __typename?: 'Post', id: string, authorID: string, title?: string | null, content: string, createdAt: any, updatedAt: any, snippet: string, points: number, upvoted?: boolean | null, downvoted?: boolean | null, author: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } } | null };
|
|
|
|
|
|
|
|
|
|
export type PostsQueryVariables = Exact<{
|
|
|
|
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
cursor?: InputMaybe<Scalars['Timestamp']['input']>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PostsQuery = { __typename?: 'Query', posts: Array<{ __typename?: 'Post', id: string, authorID: string, title?: string | null, content: string, createdAt: any, updatedAt: any, snippet: string, points: number, upvoted?: boolean | null, downvoted?: boolean | null, author: { __typename?: 'User', id: string, email?: string | null, username: string, createdAt: any, updatedAt: any } }> };
|
|
|
|
|
|
|
|
|
|
export const RegularErrorFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularError"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]} as unknown as DocumentNode<RegularErrorFragment, unknown>;
|
|
|
|
|
export const RegularUserFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<RegularUserFragment, unknown>;
|
|
|
|
|
export const RegularPostFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorID"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"points"}},{"kind":"Field","name":{"kind":"Name","value":"upvoted"}},{"kind":"Field","name":{"kind":"Name","value":"downvoted"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<RegularPostFragment, unknown>;
|
|
|
|
|
export const RegularPostResponseFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPostResponse"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PostResponse"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularError"}}]}},{"kind":"Field","name":{"kind":"Name","value":"post"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularPost"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularError"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorID"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"points"}},{"kind":"Field","name":{"kind":"Name","value":"upvoted"}},{"kind":"Field","name":{"kind":"Name","value":"downvoted"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}}]} as unknown as DocumentNode<RegularPostResponseFragment, unknown>;
|
|
|
|
|
export const RegularUserResponseFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUserResponse"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserResponse"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularError"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularError"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<RegularUserResponseFragment, unknown>;
|
|
|
|
|
export const CreatePostDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePost"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PostInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPost"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularPostResponse"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularError"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorID"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"points"}},{"kind":"Field","name":{"kind":"Name","value":"upvoted"}},{"kind":"Field","name":{"kind":"Name","value":"downvoted"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPostResponse"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PostResponse"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularError"}}]}},{"kind":"Field","name":{"kind":"Name","value":"post"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularPost"}}]}}]}}]} as unknown as DocumentNode<CreatePostMutation, CreatePostMutationVariables>;
|
|
|
|
|
export const DeletePostDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeletePost"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deletePost"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DeletePostMutation, DeletePostMutationVariables>;
|
|
|
|
|
export const DownvoteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"Downvote"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"postID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"downvote"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"postID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"postID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularPost"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorID"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"points"}},{"kind":"Field","name":{"kind":"Name","value":"upvoted"}},{"kind":"Field","name":{"kind":"Name","value":"downvoted"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}}]} as unknown as DocumentNode<DownvoteMutation, DownvoteMutationVariables>;
|
|
|
|
|
export const ForgotPasswordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ForgotPassword"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"email"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"forgotPassword"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"email"},"value":{"kind":"Variable","name":{"kind":"Name","value":"email"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularError"}}]}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"messageType"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularError"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]} as unknown as DocumentNode<ForgotPasswordMutation, ForgotPasswordMutationVariables>;
|
|
|
|
|
export const LoginDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"Login"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UsernamePasswordInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"login"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUserResponse"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularError"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUserResponse"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserResponse"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularError"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}}]} as unknown as DocumentNode<LoginMutation, LoginMutationVariables>;
|
|
|
|
|
export const LogoutDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"Logout"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"logout"}}]}}]} as unknown as DocumentNode<LogoutMutation, LogoutMutationVariables>;
|
|
|
|
|
export const RegisterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"Register"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UsernamePasswordInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"register"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUserResponse"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularError"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUserResponse"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserResponse"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularError"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}}]} as unknown as DocumentNode<RegisterMutation, RegisterMutationVariables>;
|
|
|
|
|
export const RemoveDownvoteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveDownvote"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"postID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeDownvote"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"postID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"postID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularPost"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorID"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"points"}},{"kind":"Field","name":{"kind":"Name","value":"upvoted"}},{"kind":"Field","name":{"kind":"Name","value":"downvoted"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}}]} as unknown as DocumentNode<RemoveDownvoteMutation, RemoveDownvoteMutationVariables>;
|
|
|
|
|
export const RemoveUpvoteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveUpvote"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"postID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeUpvote"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"postID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"postID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularPost"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorID"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"points"}},{"kind":"Field","name":{"kind":"Name","value":"upvoted"}},{"kind":"Field","name":{"kind":"Name","value":"downvoted"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}}]} as unknown as DocumentNode<RemoveUpvoteMutation, RemoveUpvoteMutationVariables>;
|
|
|
|
|
export const ResetPasswordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResetPassword"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"newPassword"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"resetPassword"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"newPassword"},"value":{"kind":"Variable","name":{"kind":"Name","value":"newPassword"}}},{"kind":"Argument","name":{"kind":"Name","value":"token"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularError"}}]}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"messageType"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularError"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]} as unknown as DocumentNode<ResetPasswordMutation, ResetPasswordMutationVariables>;
|
|
|
|
|
export const UpdatePostDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdatePost"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"title"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"content"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updatePost"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"title"},"value":{"kind":"Variable","name":{"kind":"Name","value":"title"}}},{"kind":"Argument","name":{"kind":"Name","value":"content"},"value":{"kind":"Variable","name":{"kind":"Name","value":"content"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularError"}}]}},{"kind":"Field","name":{"kind":"Name","value":"post"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularPost"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularError"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorID"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"points"}},{"kind":"Field","name":{"kind":"Name","value":"upvoted"}},{"kind":"Field","name":{"kind":"Name","value":"downvoted"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}}]} as unknown as DocumentNode<UpdatePostMutation, UpdatePostMutationVariables>;
|
|
|
|
|
export const UpvoteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"Upvote"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"postID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upvote"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"postID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"postID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularPost"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorID"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"points"}},{"kind":"Field","name":{"kind":"Name","value":"upvoted"}},{"kind":"Field","name":{"kind":"Name","value":"downvoted"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}}]} as unknown as DocumentNode<UpvoteMutation, UpvoteMutationVariables>;
|
|
|
|
|
export const CheckResetPasswordTokenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CheckResetPasswordToken"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"checkResetPasswordToken"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}}]}]}}]} as unknown as DocumentNode<CheckResetPasswordTokenQuery, CheckResetPasswordTokenQueryVariables>;
|
|
|
|
|
export const MeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<MeQuery, MeQueryVariables>;
|
|
|
|
|
export const PostDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Post"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"post"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularPost"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorID"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"points"}},{"kind":"Field","name":{"kind":"Name","value":"upvoted"}},{"kind":"Field","name":{"kind":"Name","value":"downvoted"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}}]} as unknown as DocumentNode<PostQuery, PostQueryVariables>;
|
|
|
|
|
export const PostsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Posts"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Timestamp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"posts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularPost"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularUser"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RegularPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorID"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"points"}},{"kind":"Field","name":{"kind":"Name","value":"upvoted"}},{"kind":"Field","name":{"kind":"Name","value":"downvoted"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RegularUser"}}]}}]}}]} as unknown as DocumentNode<PostsQuery, PostsQueryVariables>;
|