Merge pull request #2188 from omnivore-app/fix/add-archived-at-to-search-item

Add archivedAt to the search item in the search api response
This commit is contained in:
Hongbo Wu
2023-05-12 15:49:41 +08:00
committed by GitHub
3 changed files with 4 additions and 0 deletions

View File

@ -2268,6 +2268,7 @@ export enum SearchErrorCode {
export type SearchItem = {
__typename?: 'SearchItem';
annotation?: Maybe<Scalars['String']>;
archivedAt?: Maybe<Scalars['Date']>;
author?: Maybe<Scalars['String']>;
content?: Maybe<Scalars['String']>;
contentReader: ContentReader;
@ -5433,6 +5434,7 @@ export type SearchErrorResolvers<ContextType = ResolverContext, ParentType exten
export type SearchItemResolvers<ContextType = ResolverContext, ParentType extends ResolversParentTypes['SearchItem'] = ResolversParentTypes['SearchItem']> = {
annotation?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
archivedAt?: Resolver<Maybe<ResolversTypes['Date']>, ParentType, ContextType>;
author?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
content?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
contentReader?: Resolver<ResolversTypes['ContentReader'], ParentType, ContextType>;

View File

@ -1660,6 +1660,7 @@ enum SearchErrorCode {
type SearchItem {
annotation: String
archivedAt: Date
author: String
content: String
contentReader: ContentReader!

View File

@ -1586,6 +1586,7 @@ const schema = gql`
recommendations: [Recommendation!]
wordsCount: Int
content: String
archivedAt: Date
}
type SearchItemEdge {