HomeGlossaryRelease HistoryRoadmap
Search
⌃K
Links
Search
⌃K
TerminusCMS
Get Started
Get your API key
Start with a Client API
Product Tour
TerminusDB
Get Started
Install Options
Install Client
Tutorials
GUIDES
How-to Guides
Clone a Demo Project
Use the JavaScript Client
Connect with the JavaScript Client
Create a Database
Connect to a Database
Add a Schema
Add Documents
Get Documents
Edit a Document
Delete a Document
Query Documents
JavaScript Client Tutorial
Manage Access Control with JS Client
Use the Python Client
Build a Schema
Use Collaboration Features
Query using GraphQL
Query using WOQL
Use the TerminusDB CLI
Use the TerminusDB Local Dashboard
JSON Diff and Patch Operations
Reference Guides
DOCUMENT UI SDK
Use the Document UI SDK
Explanations
Introduction to TerminusDB
ACID Transactions
Datalog
Documents
Graphs
Immutability
Weakening Schema
WOQL
Relational vs Graph Databases
Glossary
Release Notes
Powered By GitBook

Connect to a Database

How to connect to an existing database using the TerminusDB JavaScript Client
Assuming you have connected with the JavaScript Client, connecting to a database is the same for TerminusDB and TerminusCMS.
The example code below registers your database in woqlClient parameters and then all your calls will be made to this db -
client.db('ExampleDatabase')
client.getSchema().then(result=>{
console.log(result)
})
Previous
Create a Database
Next
Add a Schema
Last modified 22d ago
Export as PDF
Copy link