Skip to content

@gala-chain/chaincodeAPI


API > getObjectsByPartialCompositeKey

Function: getObjectsByPartialCompositeKey()

getObjectsByPartialCompositeKey\<T>(ctx, objectType, attributes, constructor): Promise\<T[]>

Type parameters

T extends ChainObject

Parameters

ctx: GalaChainContext

objectType: string

attributes: string[]

constructor: ClassConstructor\<Inferred\<T, ChainObject>>

Source

chaincode/src/utils/state.ts:65