publishExternalResult
function publishExternalResult( schema, values, storage, options?): Promise<ExternalRef>;Defined in: src/external.ts:453
Convenience over publishExternal: build the 1-row result batch for
schema (a method’s resultSchema, e.g.
protocol.getMethod("catalog")!.resultSchema) from values – the
same { result: value } record a handler would return – and publish it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
schema |
VgiSchema |
values |
Record<string, any> |
storage |
ExternalStorage |
options |
PublishExternalOptions |
Returns
Section titled “Returns”Promise<ExternalRef>
Throws
Section titled “Throws”TypeError if a non-nullable result field is missing from values.
