add siteName in api response

This commit is contained in:
Hongbo Wu
2022-07-13 10:57:54 +08:00
parent 3a31757c59
commit cb1d64cd82
3 changed files with 4 additions and 0 deletions

View File

@ -1941,6 +1941,7 @@ export enum TypeaheadSearchErrorCode {
export type TypeaheadSearchItem = {
__typename?: 'TypeaheadSearchItem';
id: Scalars['ID'];
siteName?: Maybe<Scalars['String']>;
slug: Scalars['String'];
title: Scalars['String'];
};
@ -4185,6 +4186,7 @@ export type TypeaheadSearchErrorResolvers<ContextType = ResolverContext, ParentT
export type TypeaheadSearchItemResolvers<ContextType = ResolverContext, ParentType extends ResolversParentTypes['TypeaheadSearchItem'] = ResolversParentTypes['TypeaheadSearchItem']> = {
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
siteName?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
slug?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
title?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;

View File

@ -1454,6 +1454,7 @@ enum TypeaheadSearchErrorCode {
type TypeaheadSearchItem {
id: ID!
siteName: String
slug: String!
title: String!
}

View File

@ -1781,6 +1781,7 @@ const schema = gql`
id: ID!
title: String!
slug: String!
siteName: String
}
# Mutations