ListVoxelUpdatesByDistanceInput
Arguments for listVoxelUpdatesByDistance: selects recorded voxel edits across the chunks of a region, either a cube (centerCoordinate and maxDistance) or a box (lowChunk and highChunk), grouped per chunk. A cube is ordered by increasing Chebyshev distance, then x, y, z; a box by x, y, z. Edits are returned for chunks whose grid was never stored too.
input ListVoxelUpdatesByDistanceInput {
appId: BigInt!
centerCoordinate: ChunkCoordinatesInput
maxDistance: Int
lowChunk: ChunkCoordinatesInput
highChunk: ChunkCoordinatesInput
limit: Int
skip: Int
since: DateTime
}
Fields
ListVoxelUpdatesByDistanceInput.appId ● BigInt! non-null scalar
Id of the app whose voxel edits to search (decimal string).
ListVoxelUpdatesByDistanceInput.centerCoordinate ● ChunkCoordinatesInput input
Center chunk of the search cube. With maxDistance; leave both out to search a box (lowChunk and highChunk) instead.
ListVoxelUpdatesByDistanceInput.maxDistance ● Int scalar
Cube radius in chunks measured as Chebyshev distance: matches chunks whose x, y and z each differ from the center by at most this many chunks. Integer, 1-8 inclusive. With centerCoordinate.
ListVoxelUpdatesByDistanceInput.lowChunk ● ChunkCoordinatesInput input
One corner of a search box, with highChunk, instead of a cube. Corners are normalized per axis, and the box may cover at most 4,913 chunks (the cube maxDistance 8 reads).
ListVoxelUpdatesByDistanceInput.highChunk ● ChunkCoordinatesInput input
The opposite corner of the search box, with lowChunk; both corners are inclusive.
ListVoxelUpdatesByDistanceInput.limit ● Int scalar
Maximum number of CHUNKS (not voxels) to include. Defaults to 1000 when omitted or 0. Must be >= 0.
ListVoxelUpdatesByDistanceInput.skip ● Int scalar
Number of chunks to skip for pagination. Defaults to 0 when omitted. Must be >= 0.
ListVoxelUpdatesByDistanceInput.since ● DateTime scalar
Optional inclusive lower time bound; only edits with createdAt >= this timestamp are returned. For a reader that keeps a region current: pass the newest createdAt it has read, LESS A FEW SECONDS. An edit's createdAt is the time it was taken, and it becomes readable a moment later, so a read from exactly the newest time can miss an edit taken just before it and stored just after. Reading the overlap again returns edits the reader already holds, which is harmless. What since reports: a new edit, an edit written again, and a reverted edit (rollbackVoxelUpdates stamps the revert with its own time). What it cannot report, because the edit is no longer there to return: edits a whole-chunk write replaced (the chunk's own time moves; read getChunksByDistance with its since) and edits deleteVoxelUpdates removed (read the region again after a delete).