GNS-Science/nshm-toshi-api

Feature:Toshi API can iterate (with pagination) all existing objects.

Closed this issue · 0 comments

In order to reindex API content we must first be able to iterate all the objects from the datastores.

Done when:

  • add paginated list_object_ids resolver to API schema returns just object type and identities
  • default is to list all object types in the schema not possible, see notes below

Implementation notes:

  • there are two different resolvers one each for legacy (s3) objects and modern DynamoDB objects.
  • the legacy is grouped by data handler, the latter by object type . This is due to different indexing approach used in each case.