I'll describe my problem first. Enumerations comes from Salesforce synchronization. The useful values are Label and Internal Name. However, the values between the two are inconsistent. The database stores the value of Internal Name, but when I do Query, THE SQL splicing takes the Label of Enumerations as the condition to Query. Is there no transformation here?
However, in the Schema, Enumerations syntax, the forwarding between Label and value can be implemented.
I expect that enumeration can also achieve the effect of syntax in enumeration in schema.