GeoLeaf Core API - v3.19.0
    Preparing search index...
    • Reads the server's current row for an entity — the version the overwrite is about to crush.

      ⚠️ A GET, and it writes nothing. The row is returned to the caller; storing it is recordConflict's job, and neither touches features.

      ⚠️ An empty JSON array is "absent", anything unreadable is "unreadable", and the distinction is the same one the drain draws on a 200 []: an array proves the server answered in representation, a body we cannot read proves nothing. Reading the second as the first would make the store claim "the server held nothing" about a row it simply could not see.

      Parameters

      • record: FeatureRecord

        The entity whose server row is wanted; its serverId names the row.

      • target: ReadTarget

        The layer's endpoint and marker column.

      Returns Promise<ServerSnapshot>

      What could be established — never throws.

      const snapshot = await readServerVersion(record, target);
      if (snapshot.outcome === "read") console.log(snapshot.version);