type
ReferenceOutput
ReferenceOutput is the logical read value of a singular relationship. ID is available regardless of whether an authorized document was populated.
Full signature
type ReferenceOutput struct {
id ID
document store.Value
}Methods
ReferenceOutput.Document()Document returns a detached document when population is present.
ReferenceOutput.ID()ID returns the referenced document identifier.