diff --git a/src/graphql/biospecimen/extendedMapping.ts b/src/graphql/biospecimen/extendedMapping.ts index ddde21c..48e808a 100644 --- a/src/graphql/biospecimen/extendedMapping.ts +++ b/src/graphql/biospecimen/extendedMapping.ts @@ -58,7 +58,7 @@ const extendedMapping = [ field: 'files.biospecimen_reference', displayName: 'Files Biospecimen Reference', active: false, - isArray: false, + isArray: true, rangeStep: 1, type: 'keyword', gqlId: 'cqdg::Biospecimen::extended::files.biospecimen_reference', diff --git a/src/graphql/file/extendedMapping.ts b/src/graphql/file/extendedMapping.ts index 3681d98..1c6f325 100644 --- a/src/graphql/file/extendedMapping.ts +++ b/src/graphql/file/extendedMapping.ts @@ -6,7 +6,7 @@ const extendedMapping = [ field: 'biospecimen_reference', displayName: 'Biospecimen Reference', active: false, - isArray: false, + isArray: true, rangeStep: 1, type: 'keyword', gqlId: 'cqdg::File::extended::biospecimen_reference', diff --git a/src/graphql/file/types/file.ts b/src/graphql/file/types/file.ts index 2448880..882cb66 100644 --- a/src/graphql/file/types/file.ts +++ b/src/graphql/file/types/file.ts @@ -25,7 +25,7 @@ export const FileType = new GraphQLObjectType({ id: { type: GraphQLString }, file_id: { type: GraphQLString }, file_2_id: { type: GraphQLString }, - biospecimen_reference: { type: GraphQLString }, + biospecimen_reference: { type: new GraphQLList(GraphQLString) }, data_category: { type: GraphQLString }, data_type: { type: GraphQLString }, dataset: { type: GraphQLString }, diff --git a/src/graphql/file/types/sequencingExperiment.ts b/src/graphql/file/types/sequencingExperiment.ts index c6d7f7a..043400d 100644 --- a/src/graphql/file/types/sequencingExperiment.ts +++ b/src/graphql/file/types/sequencingExperiment.ts @@ -1,9 +1,11 @@ import { GraphQLObjectType, GraphQLString } from 'graphql'; +import { GraphQLList } from "graphql/index"; const SequencingExperimentType = new GraphQLObjectType({ name: 'SequencingExperimentType', fields: () => ({ alir: { type: GraphQLString }, + analysis_files: { type: new GraphQLList(AnalysisFilesType) }, analysis_id: { type: GraphQLString }, bio_informatic_analysis: { type: GraphQLString }, capture_kit: { type: GraphQLString }, @@ -28,4 +30,12 @@ const SequencingExperimentType = new GraphQLObjectType({ }), }); +const AnalysisFilesType = new GraphQLObjectType({ + name: 'AnalysisFilesType', + fields: () => ({ + data_type: { type: GraphQLString }, + file_id: { type: GraphQLString }, + }), +}); + export default SequencingExperimentType; diff --git a/src/graphql/participant/extendedMapping.ts b/src/graphql/participant/extendedMapping.ts index 026c8d3..e170116 100644 --- a/src/graphql/participant/extendedMapping.ts +++ b/src/graphql/participant/extendedMapping.ts @@ -463,7 +463,7 @@ const extendedMapping: I_ExtendedMappingSetFieldInput[] = [ field: 'files.biospecimen_reference', displayName: 'Files Biospecimen Reference', active: false, - isArray: false, + isArray: true, rangeStep: 1, type: 'keyword', gqlId: 'cqdg::Participant::extended::files.biospecimen_reference',