-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Platform]: Batch load studies and use updated study api on disease p…
…age (#573)
- Loading branch information
Showing
4 changed files
with
59 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 17 additions & 14 deletions
31
packages/sections/src/disease/GWASStudies/GWASStudiesQuery.gql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
query GWASStudiesQuery($diseaseIds: [String!]!, $size: Int!) { | ||
gwasStudy(diseaseIds: $diseaseIds, page: { size: $size, index: 0 }) { | ||
studyId | ||
projectId | ||
traitFromSource | ||
publicationFirstAuthor | ||
publicationDate | ||
publicationJournal | ||
nSamples | ||
cohorts | ||
pubmedId | ||
ldPopulationStructure { | ||
ldPopulation | ||
relativeSampleSize | ||
query GWASStudiesQuery($diseaseIds: [String!]!, $size: Int!, $index: Int!) { | ||
studies(diseaseIds: $diseaseIds, page: { size: $size, index: $index }) { | ||
count | ||
rows { | ||
id | ||
projectId | ||
traitFromSource | ||
publicationFirstAuthor | ||
publicationDate | ||
publicationJournal | ||
nSamples | ||
cohorts | ||
pubmedId | ||
ldPopulationStructure { | ||
ldPopulation | ||
relativeSampleSize | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters