diff --git a/app/graphql/schema.graphql b/app/graphql/schema.graphql index 543023d05..7b5a76570 100644 --- a/app/graphql/schema.graphql +++ b/app/graphql/schema.graphql @@ -6682,7 +6682,7 @@ type Organization implements ActorItem { """ Works from this organization """ - works(after: String, fieldOfScience: String, first: Int = 2, funderId: String, hasAffiliation: Boolean, hasCitations: Int, hasDownloads: Int, hasFunder: Boolean, hasMember: Boolean, hasOrganization: Boolean, hasParts: Int, hasPerson: Boolean, hasVersions: Int, hasViews: Int, ids: [String!], language: String, license: String, published: String, query: String, registrationAgency: String, repositoryId: String, resourceType: String, resourceTypeId: String, userId: String): WorkConnectionWithTotal + works(after: String, fieldOfScience: String, first: Int = 25, funderId: String, hasAffiliation: Boolean, hasCitations: Int, hasDownloads: Int, hasFunder: Boolean, hasMember: Boolean, hasOrganization: Boolean, hasParts: Int, hasPerson: Boolean, hasVersions: Int, hasViews: Int, ids: [String!], language: String, license: String, published: String, query: String, registrationAgency: String, repositoryId: String, resourceType: String, resourceTypeId: String, userId: String): WorkConnectionWithTotal } """ diff --git a/app/graphql/types/organization_type.rb b/app/graphql/types/organization_type.rb index ed5b15830..779330cbe 100644 --- a/app/graphql/types/organization_type.rb +++ b/app/graphql/types/organization_type.rb @@ -203,7 +203,7 @@ class OrganizationType < BaseObject argument :has_views, Int, required: false argument :has_downloads, Int, required: false argument :field_of_science, String, required: false - argument :first, Int, required: false, default_value: 2 + argument :first, Int, required: false, default_value: 25 argument :after, String, required: false end diff --git a/spec/graphql/types/organization_type_spec.rb b/spec/graphql/types/organization_type_spec.rb index 9bfb0433d..bdaa4172a 100644 --- a/spec/graphql/types/organization_type_spec.rb +++ b/spec/graphql/types/organization_type_spec.rb @@ -187,10 +187,9 @@ expect( response.dig("data", "organization", "works", "resourceTypes"), ).to eq([{ "count" => 3, "title" => "Dataset" }]) - # TODO should be 3 nodes expect( response.dig("data", "organization", "works", "nodes").length, - ).to eq(2) + ).to eq(3) work = response.dig("data", "organization", "works", "nodes", 0) expect(work.dig("titles", 0, "title")).to eq(