Expand description
/query filter evaluation and ordering for SceneAsset, SceneRegion,
SceneObject and SceneAvatar (draft-atwood-jmap-scene-00
§SceneAsset/query, §SceneRegion/query, §SceneObject/query,
§SceneAvatar/query).
Pure functions a backend’s query_objects can apply to its stored
objects; the reference MemoryBackend uses them.
Functions§
- asset_
matches trueifassetmatchesfilter(§SceneAsset/query): “All filter properties are combined with logical AND.”- avatar_
matches trueifavatarmatchesfilter(§SceneAvatar/query): “All filter properties are combined with logical AND.”- compare_
assets - Order two assets by
sort(“Sort properties:createdAt,name,size”; RFC 8620 §5.5: later comparators break ties of earlier ones), then byidso the order is total. - compare_
avatars - Order two avatars by
sort(“Sort properties:joinedAt,displayName”; RFC 8620 §5.5: later comparators break ties of earlier ones), then byidso the order is total. - compare_
objects - Order two objects by
sort(“Sort properties:createdAt,name”; RFC 8620 §5.5: later comparators break ties of earlier ones), then byidso the order is total. - compare_
regions - Order two regions by
sort(“Sort properties:createdAt,name,activeAvatarCount”; RFC 8620 §5.5: later comparators break ties of earlier ones), then byidso the order is total. - object_
matches trueifobject, whose region-local position isposition(seeregion_local_position), matchesfilter(§SceneObject/query): “All filter properties are combined with logical AND.”- region_
local_ position - The position of
objectin region-local coordinates. - region_
matches trueifregionmatchesfilter(§SceneRegion/query): “All filter properties are combined with logical AND.”