create
¤
Protocols for creating new entities in the Fluree ledger.
Classes:
-
CreateBuilder
–Protocol for building create operations.
-
CreateReadyToCommit
–Protocol for create operations ready to be committed.
CreateBuilder
¤
Bases: SupportsContext['CreateBuilder']
, SupportsInsert['CreateReadyToCommit']
, Protocol
Protocol for building create operations.
CreateReadyToCommit
¤
Bases: SupportsRequestCreation
, SupportsCommitable
, HasInsertData
, HasContextData
, Protocol
Protocol for create operations ready to be committed.
Methods:
acommit
async
¤
acommit() -> FlureeResponse
Executes the transaction asynchronously.
Raises:
-
RequestError
–If the HTTP request fails.
-
TypeError
–If the type parameter cannot be resolved.
commit
¤
commit() -> FlureeResponse
Executes the transaction synchronously.
Raises:
-
RequestError
–If the HTTP request fails.
-
TypeError
–If the type parameter cannot be resolved.