swh.graphql.resolvers.content module#
- class swh.graphql.resolvers.content.BaseContentNode(obj, info, node_data: Any | None = None, **kwargs)[source]#
Bases:
BaseSWHNode
Base resolver for all the content nodes
- property hashes#
- property id#
- property mimeType#
- property language#
- property license#
- class swh.graphql.resolvers.content.ContentbyHashesNode(obj, info, node_data: Any | None = None, **kwargs)[source]#
Bases:
BaseContentNode
Node resolver for a content requested with all of its hashes A single content object will be returned
- class swh.graphql.resolvers.content.TargetContentNode(obj, info, node_data: Any | None = None, **kwargs)[source]#
Bases:
BaseContentNode
Node resolver for a content requested as a target
- obj: TargetNode | BranchTargetNode#