LWC Interview Questions Part-2
lightning/ui*Api Wire Adapters and Functions : These modules are built on top of Lightning Data Service (LDS) and User Interface API. Use these wire adapters and functions to work with Salesforce data and metadata. User Interface API supports all custom objects and many standard objects.[Note : External objects are not supported] lightning/uiListApi : (Beta version) Get the records and metadata for a list view. lightning/uiObjectInfoApi : Get object metadata, and get picklist values. Method 1 : getObjectInfo — Use this wire adapter to get metadata about a specific object. The response includes metadata describing fields, child relationships, record type, and theme. Syntax : import { LightningElement, wire } from 'lwc'; import { getObjectInfo } from 'lightning/uiObjectInfoApi'; import ACCOUNT_OBJECT from '@salesforce/schema/Account'; export default class Example extends LightningElement { @wire(getObjectInfo, { objectApiName: ACCOUNT_OBJEC...