diff --git a/lib/graphql_schema.rb b/lib/graphql_schema.rb index af9dba63..cf128ead 100644 --- a/lib/graphql_schema.rb +++ b/lib/graphql_schema.rb @@ -106,6 +106,7 @@ class ServiceSessionType < GraphQL::Schema::Object field :roomId, String, null: true field :absent, Boolean, null: false field :enrolmentId, ID, null: false + field :childId, ID, null: false field :date, String, null: true def enrolment_id @@ -127,6 +128,8 @@ end class EnrolmentType < GraphQL::Schema::Object field :id, ID, null: false, method: :spid field :child, ChildType, null: false + field :childId, ID, null: false + field :parentId, ID, null: false field :parent1, ParentType, null: false field :parent2, ParentTwoType, null: true field :status, String, null: false, method: :graphql_status @@ -187,7 +191,9 @@ class ServiceType < GraphQL::Schema::Object field :id, ID, null: false, method: :spid field :name, String, null: false field :type, String, null: false - field :enrolments, [EnrolmentType], null: false, method: :families + field :enrolments, [EnrolmentType], null: false do + argument :id, String, required: false + end field :rooms, [RoomType], null: false field :educators, [CcsPersonType], null: true, method: :ccs_people