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
Use the Python Client
Build a Schema
Use Collaboration Features
Query using GraphQL
Query using WOQL
WOQL Query Basics
Add a Document
Edit Documents
Delete a Document
Filter Documents
Read Documents
Query Arrays and Sets
Group Results in WOQL
Path Queries
Order Query Results
Mathematical Operations
Schema Queries
Find an Object State
Shortest Path Queries
Use Regular Expressions
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

Read Documents

How to read documents using WOQL
To use this How-To, first clone the Star Wars demo into your team on TerminusCMS. You will then have full access to the data needed for this tutorial
You can read a document after finding the document id as follows:
let v = Vars("doc", "id");
and(isa(v.id, "People"),
triple(v.id, "label", string("Bossk")),
read_document(v.id, v.doc))
This finds a People document and makes sure it has the label "Boosk". It then reads the document into the variable doc.
Previous
Filter Documents
Next
Query Arrays and Sets
Last modified 15d ago
Export as PDF
Copy link