swh.graphql.resolvers.directory module#

class swh.graphql.resolvers.directory.BaseDirectoryNode(obj, info, node_data: Any | None = None, **kwargs)[source]#

Bases: BaseSWHNode

Base resolver for all the directory nodes

is_type_of()[source]#
class swh.graphql.resolvers.directory.DirectoryNode(obj, info, node_data: Any | None = None, **kwargs)[source]#

Bases: BaseDirectoryNode

Node resolver for a directory requested directly with its SWHID

class swh.graphql.resolvers.directory.RevisionDirectoryNode(obj, info, node_data: Any | None = None, **kwargs)[source]#

Bases: BaseDirectoryNode

Node resolver for a directory requested from a revision

obj: BaseRevisionNode#
class swh.graphql.resolvers.directory.TargetDirectoryNode(obj, info, node_data: Any | None = None, **kwargs)[source]#

Bases: BaseDirectoryNode

Node resolver for a directory requested as a target