Skip to content

Commit

Permalink
Pull from Dev 1.0.1 (#40)
Browse files Browse the repository at this point in the history
* INS-466: projectDetail query optimization (#37)

* Ins 471: Ming update to projectDetail query (#39)

* INS-466: projectDetail query optimization

* INS-471: further optimize projectDetail query

Co-authored-by: Alexander DeForge <[email protected]>
  • Loading branch information
David-YuWei and alexd-conf authored Nov 17, 2022
1 parent 8220c82 commit 61b8fe2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/graphql/ins.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1049,12 +1049,12 @@ type QueryType {
projectDetail(project_id: String): ProjectDetail @cypher(statement: """
MATCH (pr:project {project_id: $project_id})
OPTIONAL MATCH (pr)<--(pub:publication)
OPTIONAL MATCH (pr)<--(:publication)<--(dt)
OPTIONAL MATCH (pub)<--(dt)
WHERE (dt:geo) OR (dt:sra) OR (dt:dbgap)
OPTIONAL MATCH (pr)<--(c:clinical_trial)
OPTIONAL MATCH (pr)<--(:publication)<--(c:clinical_trial)
OPTIONAL MATCH (pr)<-[*1..2]-(c:clinical_trial)
OPTIONAL MATCH (pr)<--(pat)
WHERE (pat:granted_patent) OR (pat:patent_application)
WITH DISTINCt pr, pub, dt, c, pat
RETURN {
project_id: pr.project_id,
application_id: pr.application_id,
Expand Down

0 comments on commit 61b8fe2

Please sign in to comment.