Skip to content

Commit 772da34

Browse files
authored
chore: expose opportunity id (#3335)
1 parent 1573cd4 commit 772da34

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/schema/opportunity.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export interface GQLOpportunityPreviewResult {
168168
tags: string[] | null;
169169
companies: Array<{ name: string; favicon?: string }> | null;
170170
squads: GQLSource[] | null;
171+
opportunityId: string;
171172
}
172173

173174
export interface GQLOpportunityPreviewConnection {
@@ -466,6 +467,7 @@ export const typeDefs = /* GraphQL */ `
466467
companies: [OpportunityPreviewCompany!]!
467468
squads: [Source!]!
468469
totalCount: Int
470+
opportunityId: String!
469471
}
470472
471473
type OpportunityPreviewConnection {
@@ -1297,6 +1299,7 @@ export const resolvers: IResolvers<unknown, BaseContext> = traceResolvers<
12971299
companies,
12981300
squads,
12991301
totalCount,
1302+
opportunityId: opportunity.id,
13001303
},
13011304
};
13021305
},

0 commit comments

Comments
 (0)