@gala-chain/chaincode ∙ API
API > getObjectsByKeys
getObjectsByKeys<
T
>(ctx
,constructor
,objectIds
):Promise
<T
[]>
Gets objects by keys and returns them in the same order as in projectIds
parameter.
If getting at least one object fails, throws an exception.
▪ T extends ChainObject
▪ ctx: GalaChainContext
▪ constructor: ClassConstructor
<Inferred
<T
, ChainObject
>>
▪ objectIds: string
[]