UmweltDocs
Reference/Queries/entity.asKnownBy
entity.asKnownByquerysince 0.1

What a holder knows about an entity, under the names they were told.

Request
umwelt call story.umw entity.asKnownBy '{
  "projectId": "ball",
  "entityId": "bob",
  "holder": "duchess",
  "at": { "tick": 3 }
}'
Request
const result = await client.entityAsKnownBy({
  projectId: 'ball',
  entityId: 'bob',
  holder: 'duchess',
  at: { tick: 3 },
});
Request
var result = engine.EntityAsKnownBy(new EntityKnownPayload
{
    ProjectId = "ball",
    EntityId = "bob",
    Holder = "duchess",
    At = new At { Tick = 3 },
});
Response
{
  "recordIds": ["duchess-mask"],
  "holder": "duchess",
  "aliases": ["the masked guest"],
  "aware": true,
  "entityId": "bob"
}

Payload

FieldTypeDescription
projectIdrequiredstringThe project to read.
entityIdrequiredstringThe entity, by its engine id.
holderrequiredstringWhose knowledge.
atAtdefault {}Where to read: tick, an optional axis, and asOfVersion. Defaults to the latest.
timelineIdstringdefault "main"The timeline to read.

Result

FieldTypeDescription
entityIdalwaysstringThe entity.
holderalwaysstringThe holder.
namestringThe name they know it by, if they were told one.
titlestringThe title they know, if any.
aliasesalwaysstring[]The aliases they know.
awarealwaysbooleanWhether they have an Awareness record of the entity.
recordIdsalwaysstring[]The Holdings the name, title and aliases come from.

Rules

Nobody is told a name by canon. Only the holder’s own active, available Holdings count. A holder never told a name gets none, whatever the entity is called.

Errors

VALIDATION_FAILEDThe payload is malformed.
NOT_FOUNDThe project, entity, holder or timeline does not exist, or the draft read was purged.
INVALID_STATEThe timeline read is a draft that was promoted. details.promotedInto names the timeline to read instead.
HANDSHAKE_REQUIREDOver the protocol, hello was not sent first.

Every code is listed in Errors.

See also

Was this page helpful?