A field policy for an enum-valued field, scalar or list: typePolicies: { Order: { fields: { state: enumField(OrderState) } } }.
typePolicies: { Order: { fields: { state: enumField(OrderState) } } }
Reads return instances; writes store the raw value, so the normalized cache (and anything that persists it) stays plain JSON.
A field policy for an enum-valued field, scalar or list:
typePolicies: { Order: { fields: { state: enumField(OrderState) } } }.Reads return instances; writes store the raw value, so the normalized cache (and anything that persists it) stays plain JSON.