Skip to content

useSObjects

Import

import { mix, useSObjects, BoltElement } from 'c/bolt';

Usage

export default class myLwc extends mix(
[useSObjects, fields],
BoltElement
) { }

Methods

Constructor(params) : Constructor

NameTypeDescription
fieldsField[][]List of imported fields

Example

import FirstName from '@salesforce/schema/Contact.FirstName';
import AccountFirstName from '@salesforce/schema/Account.FirstName';
export default class myLwc extends mix(
[useSObject, [
[FirstName],
[AccountFirstName]
]],
BoltElement
) {}

Dynamic Attributes

<relatedListApiName>__ref : RecordRef

See useSObject’s synamic attributes

<relatedListApiName>__info : RecordInfo

See useSObject’s synamic attributes