GraphReFlyTS

API Reference

toHttp()

Creates a to HTTP.

Import

import { toHttp } from "@graphrefly/ts/adapters";

Signature

function toHttp(
	graph: Graph,
	source: Node<T>,
	requestOf: HttpRequestOf<T>,
	opts: OutboundAdapterOptions = {},
): OutboundBundle<T, HttpResponse>

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
sourceNode<T>Source node that provides graph-visible input.
requestOfHttpRequestOf<T>request of value used by the helper.
optsOutboundAdapterOptionsOptions that configure the helper.

Returns

The to HTTP result.

Example

import { toHttp } from "@graphrefly/ts/adapters";

Source

packages/ts/src/adapters/environment-outbound.ts