The lightning/uiObjectInfoApi module includes wire adapters to get object metadata and picklist values.
getObjectInfo -> Can we fetch only metadata of particular field instead of whole object metadata ?
Something like below:
import SingleField from '@salesforce/schema/Opportunity.anyfield';
@wire(getObjectInfo, { objectApiName: SingleField })
We have a adapter to fetch a particular field value like below :
@wire(getRecord, { recordId: '$recordId', fields: [Anyfield] }) oppty; get Anyfield() { return getFieldValue(this.oppty.data, Anyfield); }
In the same format I'm looking to fetch only one particular filed label in lwc, In case someone have solution please let me know.(Like getFieldInfo)
Thanks in advance.
Note: Please note without using LDS.