From cfab88bd90233bf8cf4052ba7f4d266d031aa64b Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sat, 5 Oct 2019 09:59:58 +0200 Subject: [PATCH] don't use key fields for graphql --- app/graphql/types/funder_type.rb | 3 +++ app/graphql/types/person_type.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/graphql/types/funder_type.rb b/app/graphql/types/funder_type.rb index 31a3afa7f..5ad819ca3 100644 --- a/app/graphql/types/funder_type.rb +++ b/app/graphql/types/funder_type.rb @@ -2,6 +2,9 @@ class FunderType < BaseObject extend_type + # key fields: 'id' + + # field :id, ID, null: false, description: "Crossref Funder ID", external: true field :datasets, FunderDatasetConnectionWithMetaType, null: false, description: "Funded datasets", connection: true, max_page_size: 100 do argument :first, Int, required: false, default_value: 25 diff --git a/app/graphql/types/person_type.rb b/app/graphql/types/person_type.rb index 34e55ae53..1e7543eea 100644 --- a/app/graphql/types/person_type.rb +++ b/app/graphql/types/person_type.rb @@ -2,6 +2,9 @@ class PersonType < BaseObject extend_type + # key fields: 'id' + + # field :id, ID, null: true, description: "The ORCID ID of the person.", external: true field :datasets, PersonDatasetConnectionWithMetaType, null: true, description: "Authored datasets", connection: true, max_page_size: 100 do argument :first, Int, required: false, default_value: 25