diff --git a/app/graphql/types/funder_connection_with_meta_type.rb b/app/graphql/types/funder_connection_with_meta_type.rb index a3fbfcceb..23e261d1d 100644 --- a/app/graphql/types/funder_connection_with_meta_type.rb +++ b/app/graphql/types/funder_connection_with_meta_type.rb @@ -4,16 +4,9 @@ class FunderConnectionWithMetaType < BaseConnection edge_type(FunderEdgeType) field_class GraphQL::Cache::Field - field :total_count, Integer, null: false, cache: true field :publication_connection_count, Integer, null: false, cache: true field :dataset_connection_count, Integer, null: false, cache: true field :software_connection_count, Integer, null: false, cache: true - - def total_count - args = object.arguments - - Funder.query(args[:query], limit: 0).dig(:meta, "total").to_i - end def publication_connection_count Event.query(nil, citation_type: "Funder-ScholarlyArticle").results.total diff --git a/app/graphql/types/funder_type.rb b/app/graphql/types/funder_type.rb index b82823ac9..b860e278f 100644 --- a/app/graphql/types/funder_type.rb +++ b/app/graphql/types/funder_type.rb @@ -3,11 +3,6 @@ class FunderType < BaseObject description "Information about funders" - field :id, ID, null: false, description: "Crossref Funder ID" - field :name, String, null: false, description: "The name of the funder." - field :alternate_name, [String], null: true, description: "An alias for the funder." - field :address, AddressType, null: true, description: "Physical address of the funder." - field :datasets, FunderDatasetConnectionWithMetaType, null: false, description: "Funded datasets", connection: true, max_page_size: 100 do argument :first, Int, required: false, default_value: 25 end