swh.graphql.utils.utils module#

swh.graphql.utils.utils.get_b64_string(source) str[source]#
swh.graphql.utils.utils.get_encoded_cursor(cursor: str | None) str | None[source]#
swh.graphql.utils.utils.get_decoded_cursor(cursor: str | None) str | None[source]#
swh.graphql.utils.utils.get_formatted_date(date: datetime) str[source]#
swh.graphql.utils.utils.get_storage_list_order(order: str) ListOrder[source]#
swh.graphql.utils.utils.get_local_paginated_data(source: List, first: int, after=0) ConnectionData[source]#

Pagination at the GraphQL level This is a temporary fix and inefficient. Should eventually be moved to the backend (storage) level