@rxdi/ui-components
Version:
UI Components for building graphql-server website
43 lines (42 loc) • 1.18 kB
TypeScript
export interface IGraphQLResponseRoot {
data?: IQuery | IMutation | ISubscription;
errors?: Array<IGraphQLResponseError>;
}
export interface IGraphQLResponseError {
message: string;
locations?: Array<IGraphQLResponseErrorLocation>;
[propName: string]: any;
}
export interface IGraphQLResponseErrorLocation {
line: number;
column: number;
}
/**
description: Query type for all get requests which will not change persistent data
*/
export interface IQuery {
__typename?: "Query";
status: IStatusQueryType | null;
}
export interface IStatusQueryType {
__typename?: "StatusQueryType";
status: string | null;
}
/**
description: Mutation type for all requests which will change persistent data
*/
export interface IMutation {
__typename?: "Mutation";
clickHamburgerButton: IHamburgerStatisticsType | null;
}
export interface IHamburgerStatisticsType {
__typename?: "HamburgerStatisticsType";
clicks: number | null;
}
/**
description: Subscription type for all subscriptions via pub sub
*/
export interface ISubscription {
__typename?: "Subscription";
subscribeToStatistics: IHamburgerStatisticsType | null;
}