You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ability to define HTTP endpoints will enable SurrealDB to be used as a Functions-as-a-Service backend, with the custom function logic sitting right next to the data.
This functionality relies on the implementation of #4 with support for in-built JavaScript modules (surrealdb, and fetch).
importstripefrom'stripe';asyncfunctionmain(req){letpayment=awaitstripe.handlePayment(req);// Just an examplereturnnewResponse("Payment succeeded",{headers: {"content-type": "text/plain; charset=utf-8"},status: 201,});}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The ability to define HTTP endpoints will enable SurrealDB to be used as a Functions-as-a-Service backend, with the custom function logic sitting right next to the data.
This functionality relies on the implementation of #4 with support for in-built JavaScript modules (
surrealdb
, andfetch
).Beta Was this translation helpful? Give feedback.
All reactions