Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CQDG-947 update mapping #4

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/graphql/biospecimen/extendedMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/file/extendedMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/file/types/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
10 changes: 10 additions & 0 deletions src/graphql/file/types/sequencingExperiment.ts
Original file line number Diff line number Diff line change
@@ -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 },
Expand All @@ -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;
2 changes: 1 addition & 1 deletion src/graphql/participant/extendedMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading