Changeset View
Changeset View
Standalone View
Standalone View
swh/graphql/resolvers/resolver_factory.py
# Copyright (C) 2022 The Software Heritage developers | # Copyright (C) 2022 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from .content import ContentNode, TargetContentNode | from .content import ContentNode, HashContentNode, TargetContentNode | ||||
from .directory import DirectoryNode, RevisionDirectoryNode, TargetDirectoryNode | from .directory import DirectoryNode, RevisionDirectoryNode, TargetDirectoryNode | ||||
from .directory_entry import DirectoryEntryConnection | from .directory_entry import DirectoryEntryConnection | ||||
from .origin import OriginConnection, OriginNode | from .origin import OriginConnection, OriginNode | ||||
from .release import ReleaseNode, TargetReleaseNode | from .release import ReleaseNode, TargetReleaseNode | ||||
from .revision import ( | from .revision import ( | ||||
LogRevisionConnection, | LogRevisionConnection, | ||||
ParentRevisionConnection, | ParentRevisionConnection, | ||||
RevisionNode, | RevisionNode, | ||||
Show All 29 Lines | mapping = { | ||||
"revision-directory": RevisionDirectoryNode, | "revision-directory": RevisionDirectoryNode, | ||||
"release": ReleaseNode, | "release": ReleaseNode, | ||||
"release-revision": TargetRevisionNode, | "release-revision": TargetRevisionNode, | ||||
"release-release": TargetReleaseNode, | "release-release": TargetReleaseNode, | ||||
"release-directory": TargetDirectoryNode, | "release-directory": TargetDirectoryNode, | ||||
"release-content": TargetContentNode, | "release-content": TargetContentNode, | ||||
"directory": DirectoryNode, | "directory": DirectoryNode, | ||||
"content": ContentNode, | "content": ContentNode, | ||||
"content-by-hash": HashContentNode, | |||||
"dir-entry-dir": TargetDirectoryNode, | "dir-entry-dir": TargetDirectoryNode, | ||||
"dir-entry-file": TargetContentNode, | "dir-entry-file": TargetContentNode, | ||||
"search-result-snapshot": TargetSnapshotNode, | "search-result-snapshot": TargetSnapshotNode, | ||||
"search-result-revision": TargetRevisionNode, | "search-result-revision": TargetRevisionNode, | ||||
"search-result-release": TargetReleaseNode, | "search-result-release": TargetReleaseNode, | ||||
"search-result-directory": TargetDirectoryNode, | "search-result-directory": TargetDirectoryNode, | ||||
"search-result-content": TargetContentNode, | "search-result-content": TargetContentNode, | ||||
} | } | ||||
Show All 21 Lines |