def get_many(self, type: Type[T], query: Mapping[str, Any], context: PipelineContext = None) -> Iterable[T]:
try:
sources = self._sources[type]
except KeyError as error:
raise DataSource.unsupported(type) from error
for source in sources:
try:
return source.get_many(type, deepcopy(query), context)
except NotFoundError:
continue
raise NotFoundError()
评论列表
文章目录