Skip to content

Commit

Permalink
Merge pull request #81 from KPMP/KPMP-3999_create-new-graphqls-type
Browse files Browse the repository at this point in the history
Kpmp 3999 create new graphqls type
  • Loading branch information
zwright authored Jan 3, 2023
2 parents 7011f6a + 46e76ab commit e1dd8d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.springframework.stereotype.Repository;

@Repository
public interface ParticipantSummaryDatasetRepository extends CrudRepository<ParticipantSummaryDataset, Integer> {
public interface ParticipantSummaryDatasetRepository extends CrudRepository<ParticipantSummaryDataset, Long> {

@Cacheable("participantByRedcap")
ParticipantSummaryDataset findByRedcapId(@Param("redcap_id") String redcapId);
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/knowledge_environment.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ type Query {
getDataTypeInformationByParticipant(redcapId: String!): ParticipantDataTypeSummary
participantSummaryDataset(redcapId: String): ParticipantSummaryDataset
participantClinicalDataset(redcapId: String): ParticipantSummaryDataset
getTissueTypeSummaryData: [ParticipantTissueTypeSummary]
}

type ParticipantTissueTypeSummary {
akiCount: Long
ckdCount: Long
hrtCount: Long
}

type ParticipantDataTypeSummary {
Expand Down

0 comments on commit e1dd8d2

Please sign in to comment.