Changeset View
Changeset View
Standalone View
Standalone View
swh/graphql/resolvers/resolvers.py
Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | |||||
@revision.field("parents") | @revision.field("parents") | ||||
def revision_parents_resolver( | def revision_parents_resolver( | ||||
obj, info: GraphQLResolveInfo, **kw | obj, info: GraphQLResolveInfo, **kw | ||||
) -> rs.revision.ParentRevisionConnection: | ) -> rs.revision.ParentRevisionConnection: | ||||
resolver = get_connection_resolver("revision-parents") | resolver = get_connection_resolver("revision-parents") | ||||
return resolver(obj, info, **kw) | return resolver(obj, info, **kw) | ||||
# @revision.field("revisionLog") | @revision.field("revisionLog") | ||||
# def revision_log_resolver(obj, info, **kw): | def revision_log_resolver(obj, info, **kw): | ||||
# resolver = get_connection_resolver("revision-log") | resolver = get_connection_resolver("revision-log") | ||||
# return resolver(obj, info, **kw) | return resolver(obj, info, **kw) | ||||
@directory.field("entries") | @directory.field("entries") | ||||
def directory_entry_resolver( | def directory_entry_resolver( | ||||
obj, info: GraphQLResolveInfo, **kw | obj, info: GraphQLResolveInfo, **kw | ||||
) -> rs.directory_entry.DirectoryEntryConnection: | ) -> rs.directory_entry.DirectoryEntryConnection: | ||||
resolver = get_connection_resolver("directory-entries") | resolver = get_connection_resolver("directory-entries") | ||||
return resolver(obj, info, **kw) | return resolver(obj, info, **kw) | ||||
Show All 40 Lines |