swh.graphql.resolvers.snapshot module#
- class swh.graphql.resolvers.snapshot.BaseSnapshotNode(obj, info, node_data: Any | None = None, **kwargs)[source]#
Bases:
BaseSWHNode
Base resolver for all the snapshot nodes
- class swh.graphql.resolvers.snapshot.SnapshotNode(obj, info, node_data: Any | None = None, **kwargs)[source]#
Bases:
BaseSnapshotNode
Node resolver for a snapshot requested directly with its SWHID
- class swh.graphql.resolvers.snapshot.VisitSnapshotNode(obj, info, node_data: Any | None = None, **kwargs)[source]#
Bases:
BaseSnapshotNode
Node resolver for a snapshot requested from a visit-status
- obj: BaseVisitStatusNode#
- class swh.graphql.resolvers.snapshot.TargetSnapshotNode(obj, info, node_data: Any | None = None, **kwargs)[source]#
Bases:
BaseSnapshotNode
Node resolver for a snapshot requested as a target
- class swh.graphql.resolvers.snapshot.LatestSnapshotNode(obj, info, node_data: Any | None = None, **kwargs)[source]#
Bases:
BaseSnapshotNode
Node resolver for the latest snapshot in an origin
- obj: OriginNode#
- class swh.graphql.resolvers.snapshot.OriginSnapshotConnection(obj, info, data=None, **kwargs)[source]#
Bases:
BaseConnection
Connection resolver for the snapshots in an origin
- obj: OriginNode#