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 PostGraphile queries #131

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
10 changes: 3 additions & 7 deletions artifacts/queryTemplates/main-PostGraphile/QT1.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
query faculty_university_graduateStudent($facultyID:ID)
query faculty_university_graduateStudent($facultyID:ID!)
{
allFaculties(condition: { nr:$facultyID }){
nodes {
facultyByNr(nr: $facultyID){
universityByDoctoraldegreefrom {
graduatestudentsByUndergraduatedegreefrom{
nodes {
graduatestudentsByUndergraduatedegreefromList{
nr
emailaddress
}
}
}
}
}
}
4 changes: 1 addition & 3 deletions artifacts/queryTemplates/main-PostGraphile/QT10.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
query stringMatching($keyword:String)
{
allPublications(filter: {title: {includes: "$keyword"}}) {
nodes {
allPublicationsList(filter: {title: {includes: $keyword}}) {
nr
title
abstract
}
}
}
4 changes: 1 addition & 3 deletions artifacts/queryTemplates/main-PostGraphile/QT11.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
query subquerySearch($universityID:ID)
{
allGraduatestudents(condition: {undergraduatedegreefrom: $universityID}) {
nodes {
allGraduatestudentsList(condition: {undergraduatedegreefrom: $universityID}) {
nr
professorByAdvisor {
nr
}
}
}
}
14 changes: 4 additions & 10 deletions artifacts/queryTemplates/main-PostGraphile/QT12.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
query subqueryFilter1($universityID:ID, $departmentID:ID)
query subqueryFilter1($universityID:ID!, $departmentID:ID)
{
allUniversities(condition: {nr: $universityID}) {
nodes {
facultiesByDoctoraldegreefrom(condition: {worksfor: $departmentID}) {
nodes {
universityByNr(nr: $universityID) {
facultiesByDoctoraldegreefromList(condition: {worksfor: $departmentID}) {
nr
emailaddress
publicationsByMainauthor {
nodes {
publicationsByMainauthorList {
nr
}
}
}
}
}
}
}
6 changes: 2 additions & 4 deletions artifacts/queryTemplates/main-PostGraphile/QT15.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
query count_query ($universityID:ID)
query count_query ($universityID:ID!)
{
allUniversities(condition: {nr: $universityID}) {
nodes {
universityByNr(nr: $universityID) {
graduatestudentsByUndergraduatedegreefrom {
totalCount
}
}
}
}
14 changes: 4 additions & 10 deletions artifacts/queryTemplates/main-PostGraphile/QT2.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
query university_faculty_publications($universityID:ID)
query university_faculty_publications($universityID:ID!)
{
allUniversities(condition: {nr: $universityID}) {
nodes {
facultiesByDoctoraldegreefrom {
nodes {
publicationsByMainauthor {
nodes {
universityByNr(nr: $universityID) {
facultiesByDoctoraldegreefromList {
publicationsByMainauthorList {
title
}
}
}
}
}
}
}
10 changes: 3 additions & 7 deletions artifacts/queryTemplates/main-PostGraphile/QT3.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
query researchGroup_department_head_doctorDegreeFrom($researchGroupID:ID)
query researchGroup_department_head_doctorDegreeFrom($researchGroupID:ID!)
{
allResearchgroups(condition: {nr: $researchGroupID}) {
nodes {
researchGroupByNr(nr: $researchGroupID) {
departmentBySuborganizationof {
professorsByHeadof {
nodes {
professorsByHeadofList {
facultyByNr {
nr
emailaddress
universityByDoctoraldegreefrom {
nr
}
}
}
}
}
}
}
}
10 changes: 3 additions & 7 deletions artifacts/queryTemplates/main-PostGraphile/QT4.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
query lecturer_university_graduateStudent_professor_department($lecturerID:ID)
query lecturer_university_graduateStudent_professor_department($lecturerID:ID!)
{
allLecturers(condition: {nr: $lecturerID}) {
nodes {
lecturerByNr(nr: $lecturerID) {
facultyByNr {
universityByDoctoraldegreefrom {
nr
graduatestudentsByUndergraduatedegreefrom {
nodes {
graduatestudentsByUndergraduatedegreefromList {
nr
emailaddress
professorByAdvisor {
Expand All @@ -18,10 +16,8 @@ query lecturer_university_graduateStudent_professor_department($lecturerID:ID)
}
}
}
}
}
}
}
}
}
}
14 changes: 4 additions & 10 deletions artifacts/queryTemplates/main-PostGraphile/QT5.txt
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
query department_faculty_university_graduateStudents_department($departmentID:ID)
query department_faculty_university_graduateStudents_department($departmentID:ID!)
{
allDepartments(condition: {nr: $departmentID}) {
nodes {
departmentByNr(nr: $departmentID) {
universityBySuborganizationof {
nr
graduatestudentsByUndergraduatedegreefrom {
nodes {
graduatestudentsByUndergraduatedegreefromList {
nr
emailaddress
departmentByMemberof {
nr
universityBySuborganizationof {
nr
graduatestudentsByUndergraduatedegreefrom {
nodes {
graduatestudentsByUndergraduatedegreefromList {
nr
emailaddress
departmentByMemberof {
nr
}
}
}
}
}
}
}
}
}
}
}
10 changes: 3 additions & 7 deletions artifacts/queryTemplates/main-PostGraphile/QT6.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
query university_graduateStudents_supervisor_department($universityID:ID)
query university_graduateStudents_supervisor_department($universityID:ID!)
{
allUniversities(condition: {nr: $universityID}) {
nodes {
graduatestudentsByUndergraduatedegreefrom {
nodes {
universityByNr(nr: $universityID) {
graduatestudentsByUndergraduatedegreefromList {
professorByAdvisor {
facultyByNr {
departmentByWorksfor {
nr
}
}
}
}
}
}
}
}
8 changes: 2 additions & 6 deletions artifacts/queryTemplates/main-PostGraphile/QT7.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
query paging_with_offset_as_counter($universityID:ID, $offset:Int)
query paging_with_offset_as_counter($universityID:ID!, $offset:Int)
{
allUniversities(condition: {nr: $universityID}) {
nodes {
univserityByNr(nr: $universityID) {
graduatestudentsByUndergraduatedegreefrom(first: 10, offset: $offset) {
nodes {
professorByAdvisor {
nr
}
}
}
}
}
}
6 changes: 2 additions & 4 deletions artifacts/queryTemplates/main-PostGraphile/QT8.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
query sorting_with_paging($cnt:Int, $attrGStudent1PostGraphile: GraduatestudentsOrderBy, $attrGStudent2PostGraphile: GraduatestudentsOrderBy)
query sorting_with_paging($cnt:Int, $attrGStudent1PostGraphile: GraduatestudentsOrderBy!, $attrGStudent2PostGraphile: GraduatestudentsOrderBy!)
{
allGraduatestudents(first:$cnt, orderBy: [ $attrGStudent1PostGraphile, $attrGStudent2PostGraphile ]) {
nodes {
allGraduatestudentsList(first:$cnt, orderBy: [ $attrGStudent1PostGraphile, $attrGStudent2PostGraphile ]) {
nr
telephone
emailaddress
}
}
}
14 changes: 4 additions & 10 deletions artifacts/queryTemplates/main-PostGraphile/QT9.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
query paging_and_sorting($universityID:ID, $attrPublicationFieldPostGraphile:PublicationsOrderBy)
query paging_and_sorting($universityID:ID!, $attrPublicationFieldPostGraphile:PublicationsOrderBy)
{
allUniversities(condition: {nr: $universityID}) {
nodes {
graduatestudentsByUndergraduatedegreefrom(first: 50) {
nodes {
universityByNr(nr: $universityID) {
graduatestudentsByUndergraduatedegreefromList(first: 50) {
professorByAdvisor {
facultyByNr {
publicationsByMainauthor(orderBy: $attrPublicationFieldPostGraphile) {
nodes {
publicationsByMainauthorList(orderBy: $attrPublicationFieldPostGraphile) {
nr
}
}
}
}
}
}
}
}
}