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

KPMP-5366: update names of graphql queries #541

Merged
merged 1 commit into from
Nov 11, 2024
Merged
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
14 changes: 7 additions & 7 deletions src/helpers/ApolloClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export const fetchGeneExpression = async (dataType, geneSymbol, cellType, enroll
export const fetchRegionalTranscriptomics = async (comparisonType, geneSymbol) => {
let query = gql`
query {
getRTGeneExpressionByTissue(comparisonType:"${comparisonType}", geneSymbol: "${geneSymbol}") {
getRTGeneExpressionByEnrollment(comparisonType:"${comparisonType}", geneSymbol: "${geneSymbol}") {
aki {
id
segment
Expand Down Expand Up @@ -318,8 +318,8 @@ export const fetchRegionalTranscriptomics = async (comparisonType, geneSymbol) =
fetchPolicy: 'cache-first'
});

if (response.data && response.data.getRTGeneExpressionByTissue) {
return response.data.getRTGeneExpressionByTissue;
if (response.data && response.data.getRTGeneExpressionByEnrollment) {
return response.data.getRTGeneExpressionByEnrollment;
} else {
store.dispatch(sendMessageToBackend("Could not retrieve regional transcriptomics data: " + response.error));
}
Expand All @@ -329,7 +329,7 @@ export const fetchRegionalTranscriptomics = async (comparisonType, geneSymbol) =
export const fetchRegionalProteomics = async (geneSymbol) => {
let query = gql`
query {
getRPGeneExpressionByTissue(geneSymbol: "${geneSymbol}") {
getRPGeneExpressionByEnrollment(geneSymbol: "${geneSymbol}") {
accession
rpExpressionByEnrollmentCategory {
all {
Expand Down Expand Up @@ -357,8 +357,8 @@ export const fetchRegionalProteomics = async (geneSymbol) => {
fetchPolicy: 'cache-first'
});

if (response.data && response.data.getRPGeneExpressionByTissue) {
return response.data.getRPGeneExpressionByTissue;
if (response.data && response.data.getRPGeneExpressionByEnrollment) {
return response.data.getRPGeneExpressionByEnrollment;
} else {
store.dispatch(sendMessageToBackend("Could not retrieve regional proteomics data: " + response.error));
}
Expand Down Expand Up @@ -473,7 +473,7 @@ export const fetchEnrollmentCategorySummaryCounts = async () => {
if (response.data && response.data.getEnrollmentCategorySummaryData) {
return response.data.getEnrollmentCategorySummaryData[0];
}else {
store.dispatch(sendMessageToBackend("Could not retrieve tissue summary: " + response.error));
store.dispatch(sendMessageToBackend("Could not retrieve enrollment category summary: " + response.error));
}
}

Expand Down
Loading