type
View
View is an immutable snapshot of one object's field values. Lookup, Get and String accept direct child names, not dotted paths. Follow nested objects with Get("seo").Get("title"); iterate lists with Get("variants").Elements(). These reads share immutable values without copying maps or slices.
Full signature
type View struct {
object store.Value
}Methods
View.Get()Get reads a direct child, returning Null when it is absent. Use Lookup when membership in this snapshot matters. JSON and plugin values retain their own object shape rather than acquiring omitted scalar properties.
View.Lookup()Lookup reads a direct child and reports snapshot membership. During save callbacks, empty scalars in Root, Siblings and an existing Prior object normalize to Null, so membership does not prove the caller submitted that field. Inspect a raw hook's Value argument when omission and explicit null need different normalization. LiveValidationContext retains sparse readable snapshots; its Input view records submitted membership before retained persisted values are combined.
View.String()String reads a typed sibling, root or prior value without a type assertion.