Skip to content

Commit

Permalink
fix: CQDG-811 nested fields
Browse files Browse the repository at this point in the history
  • Loading branch information
adipaul1981 committed Jul 9, 2024
1 parent c4a3448 commit 0dda9fa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/graphql/biospecimen/types/biospecimen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,17 @@ export const BiospecimenType = new GraphQLObjectType({
study: { type: StudyType },
}),
extensions: {
nestedFields: ['files'],
nestedFields: [
'files',
'participant.diagnoses',
'participant.family_relationships',
'participant.icd_tagged',
'participant.mondo',
'participant.mondo_tagged',
'participant.observed_phenotype_tagged',
'participant.observed_phenotypes',
'participant.phenotypes_tagged',
],
esIndex: esBiospecimenIndex,
},
});
Expand Down
1 change: 1 addition & 0 deletions src/graphql/participant/types/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const ParticipantType = new GraphQLObjectType({
extensions: {
nestedFields: [
'files',
'files.biospecimens',
'biospecimens',
'family_relationships',
'icd_tagged',
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/study/types/study.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const StudyType = new GraphQLObjectType({
experimental_strategies: { type: ExperimentalStrategiesType },
}),
extensions: {
nestedFields: [],
nestedFields: ['data_categories', 'data_types', 'datasets', 'experimental_strategies'],
esIndex: esStudyIndex,
},
});
Expand Down

0 comments on commit 0dda9fa

Please sign in to comment.