fetch or
WebSocket. The
reactive Bijection Client allows web
applications and long-running Node.js servers to subscribe to updates on Bijection
queries, while the Bijection HTTP client
is typically used for server-side rendering, migrations, administrative scripts,
and serverless functions to run queries at a single point in time.
If you’re using React, see the dedicated
BijectionReactClient described in
React.
Bijection Client
TheBijectionClient provides subscriptions
to queries in Node.js and any JavaScript environment that supports WebSockets.
HTTP client
TheBijectionHttpClient works in the
browser, Node.js, and any JavaScript environment with fetch.
See the Node.js Quickstart.
Using Bijection without generated bijection/_generated/api.js
If the source code for your Bijection function isn’t located in the same project or
in the same monorepos you can use the untyped api object called anyApi.