Search
Enter a search query
Back to home
JavaScript SDK
Overview
Installation
Quick start
Data Types
Methods
authenticate
close
connect
create
delete
info
insert
insert_relation
invalidate
kill
let
live
merge
patch
query
select
signin
signup
subscribeLive
unset
update
use
wait
Concepts
Create a new connection
Handle authentication
Set parameters
Data manipulation
Real-Time data streaming
Run SurrealQL queries
Utilities methods
Engines
Node
Wasm
surrealdb/surrealdb.js
SDK methods
wait
.wait()
Waits for the connection to the database to succeed.
await
db
.
wait
(
)
;
Example usage
await
db
.
wait
(
)
;
Edit this page on GitHub
use
Concepts
On this page
.wait()
Example usage
© SurrealDB
•
GitHub
•
Discord
•
Community
•
Cloud
•
Features
•
Releases
•
Install