masked

suspend fun masked(gateway: QueryGateway?, caller: QueryCaller, state: Snapshot<JsonNode>, masks: PayloadMasks = PayloadMasks.NONE): JsonNode

The tree of state masked as the snapshot queries of its type mask it for caller, no policy evaluated: with a gateway, by the schema its queries are masked by (QueryGateway.maskRecord), else by masks; its DISPLAY values raw for a caller that reveals them, as admitted answers them.