ds_protocol_graphql_py_lib.dataset.incremental.settings ======================================================= .. py:module:: ds_protocol_graphql_py_lib.dataset.incremental.settings .. autoapi-nested-parse:: **File:** ``settings.py`` **Region:** ``ds_protocol_graphql_py_lib/dataset/incremental/settings`` Incremental (shifting-scope) settings for GraphqlDataset reads. The query document owns the filter shape; incremental only supplies the value of one GraphQL variable. .. rubric:: Example >>> IncrementalSettings(variable="updatedSince", watermark_path="updatedAt") With a query such as:: query($first: Int, $after: String, $updatedSince: String) { customers(first: $first, after: $after, filter: { updatedAt_gte: $updatedSince }) { ... } } Classes ------- .. autoapisummary:: ds_protocol_graphql_py_lib.dataset.incremental.settings.IncrementalSettings Module Contents --------------- .. py:class:: IncrementalSettings Bases: :py:obj:`ds_common_serde_py_lib.Serializable` Instruction nest for incremental rules used by Paginate. Instruction (stable): which GraphQL variable carries the lower bound and which output-row field advances the high-watermark. State (runtime): the watermark value itself lives in ``checkpoint["incremental"]``. Paginate reads it on prepare and writes it on commit. .. py:attribute:: strategy :type: ds_protocol_graphql_py_lib.dataset.incremental.enums.IncrementalStrategy Incremental ruleset. Declared explicitly; never inferred. .. py:attribute:: variable :type: str GraphQL variable that receives the stored watermark on every page. Not sent when no watermark is stored yet (first run). Declare it nullable in the query, or put a start value in ``read.variables``; the injected watermark wins over it once one exists. .. py:attribute:: watermark_path :type: str Dotted path on each **output row** (after deserialize) used to compute the new high-watermark.