Merge pull request #1469 from omnivore-app/add-labels-to-highlight-in-response

Add labels in highlight type in api response
This commit is contained in:
Hongbo Wu 2022-11-25 17:28:42 +08:00 committed by GitHub
commit e2dbb82b91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View file

@ -786,6 +786,7 @@ export type Highlight = {
highlightPositionAnchorIndex?: Maybe<Scalars['Int']>;
highlightPositionPercent?: Maybe<Scalars['Float']>;
id: Scalars['ID'];
labels?: Maybe<Array<Label>>;
patch: Scalars['String'];
prefix?: Maybe<Scalars['String']>;
quote: Scalars['String'];
@ -4053,6 +4054,7 @@ export type HighlightResolvers<ContextType = ResolverContext, ParentType extends
highlightPositionAnchorIndex?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
highlightPositionPercent?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
labels?: Resolver<Maybe<Array<ResolversTypes['Label']>>, ParentType, ContextType>;
patch?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
prefix?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
quote?: Resolver<ResolversTypes['String'], ParentType, ContextType>;

View file

@ -694,6 +694,7 @@ type Highlight {
highlightPositionAnchorIndex: Int
highlightPositionPercent: Float
id: ID!
labels: [Label!]
patch: String!
prefix: String
quote: String!

View file

@ -643,6 +643,7 @@ const schema = gql`
createdByMe: Boolean!
highlightPositionPercent: Float
highlightPositionAnchorIndex: Int
labels: [Label!]
}
input CreateHighlightInput {