swh.graphql.resolvers.resolver_factory module#
- class swh.graphql.resolvers.resolver_factory.NodeObjectFactory[source]#
Bases:
object
- mapping: ClassVar[Dict[str, Type[BaseNode]]] = {'branch-target': <class 'swh.graphql.resolvers.target.BranchTargetNode'>, 'content-by-hashes': <class 'swh.graphql.resolvers.content.ContentbyHashesNode'>, 'content-data': <class 'swh.graphql.resolvers.content_data.ContentDataNode'>, 'directory': <class 'swh.graphql.resolvers.directory.DirectoryNode'>, 'directory-directoryentry': <class 'swh.graphql.resolvers.directory_entry.DirEntryInDirectoryNode'>, 'directory-entry': <class 'swh.graphql.resolvers.directory_entry.DirEntryDirectNode'>, 'generic-target': <class 'swh.graphql.resolvers.target.TargetNode'>, 'latest-snapshot': <class 'swh.graphql.resolvers.snapshot.LatestSnapshotNode'>, 'latest-status': <class 'swh.graphql.resolvers.visit_status.LatestVisitStatusNode'>, 'latest-visit': <class 'swh.graphql.resolvers.visit.LatestVisitNode'>, 'origin': <class 'swh.graphql.resolvers.origin.OriginNode'>, 'release': <class 'swh.graphql.resolvers.release.ReleaseNode'>, 'revision': <class 'swh.graphql.resolvers.revision.RevisionNode'>, 'revision-directory': <class 'swh.graphql.resolvers.directory.RevisionDirectoryNode'>, 'snapshot': <class 'swh.graphql.resolvers.snapshot.SnapshotNode'>, 'snapshot-headbranch': <class 'swh.graphql.resolvers.snapshot_branch.SnapshotHeadBranchNode'>, 'target-content': <class 'swh.graphql.resolvers.content.TargetContentNode'>, 'target-directory': <class 'swh.graphql.resolvers.directory.TargetDirectoryNode'>, 'target-origin': <class 'swh.graphql.resolvers.origin.TargetOriginNode'>, 'target-release': <class 'swh.graphql.resolvers.release.TargetReleaseNode'>, 'target-revision': <class 'swh.graphql.resolvers.revision.TargetRevisionNode'>, 'target-snapshot': <class 'swh.graphql.resolvers.snapshot.TargetSnapshotNode'>, 'visit': <class 'swh.graphql.resolvers.visit.OriginVisitNode'>, 'visit-snapshot': <class 'swh.graphql.resolvers.snapshot.VisitSnapshotNode'>}#
- class swh.graphql.resolvers.resolver_factory.ConnectionObjectFactory[source]#
Bases:
object
- mapping: ClassVar[Dict[str, Type[BaseConnection]]] = {'directory-entries': <class 'swh.graphql.resolvers.directory_entry.DirectoryEntryConnection'>, 'origin-search': <class 'swh.graphql.resolvers.search.OriginSearchConnection'>, 'origin-snapshots': <class 'swh.graphql.resolvers.snapshot.OriginSnapshotConnection'>, 'origin-visits': <class 'swh.graphql.resolvers.visit.OriginVisitConnection'>, 'origins': <class 'swh.graphql.resolvers.origin.OriginConnection'>, 'revision-log': <class 'swh.graphql.resolvers.revision.LogRevisionConnection'>, 'revision-parents': <class 'swh.graphql.resolvers.revision.ParentRevisionConnection'>, 'snapshot-branches': <class 'swh.graphql.resolvers.snapshot_branch.SnapshotBranchConnection'>, 'visit-status': <class 'swh.graphql.resolvers.visit_status.VisitStatusConnection'>}#
- class swh.graphql.resolvers.resolver_factory.SimpleListFactory[source]#
Bases:
object
- mapping: ClassVar[Dict[str, Type[BaseList]]] = {'contents-hashes': <class 'swh.graphql.resolvers.content.ContentHashList'>, 'contents-swhid': <class 'swh.graphql.resolvers.content.ContentSwhidList'>, 'release-author': <class 'swh.graphql.resolvers.person.ReleaseAuthorList'>, 'resolve-swhid': <class 'swh.graphql.resolvers.swhid.ResolveSWHIDList'>, 'revision-author': <class 'swh.graphql.resolvers.person.RevisionAuthorList'>, 'revision-committer': <class 'swh.graphql.resolvers.person.RevisionCommitterList'>}#