method
PolymorphicRelationshipField.EditAdmin
EditAdmin updates selected admin settings while preserving the rest.
Arguments
| Argument | Type | Description |
|---|---|---|
edit | func(*Admin) | The edit value. |
Returns
The declared result.
PolymorphicRelationshipFieldFull signature
func (f PolymorphicRelationshipField) EditAdmin(
edit func(*Admin),
) PolymorphicRelationshipFieldRelated types
PolymorphicRelationshipFieldPolymorphicRelationshipField configures a link to one document from any of the target collections.
AdminAdmin configures how a field is presented and edited in the framework admin. It never grants API access or changes storage behavior; use Access for authorization. A field's Admin method replaces the complete group, while EditAdmin preserves members its callback does not change. Ridu snapshots maps on input and output so retained drafts cannot mutate a published field.