Coverage for src/lexigram/graphql/dataloader/__init__.py: 100%
5 statements
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-25 04:37 +0800
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-25 04:37 +0800
1"""DataLoaderProtocol module.
3This module provides DataLoaderProtocol implementation for efficient
4batching and caching of data fetches in GraphQL resolvers.
5"""
7from __future__ import annotations
9from lexigram.graphql.dataloader.batch import (
10 BatchFunction,
11 batch_load,
12)
13from lexigram.graphql.dataloader.cache import (
14 InMemoryCache,
15 LoaderCache,
16)
17from lexigram.graphql.dataloader.loader import (
18 DataLoaderProtocol,
19 create_loader,
20)
22__all__ = [
23 # Batch
24 "BatchFunction",
25 # Loader
26 "DataLoaderProtocol",
27 "InMemoryCache",
28 # Cache
29 "LoaderCache",
30 "batch_load",
31 "create_loader",
32]