Skip to content

Commit

Permalink
don't use key fields for graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 5, 2019
1 parent c7cef37 commit cfab88b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/graphql/types/funder_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions app/graphql/types/person_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfab88b

Please sign in to comment.