Skip to content

Commit 8e518bf

Browse files
committed
Search improvement and responsible signup button
1 parent 9e2e31a commit 8e518bf

File tree

33 files changed

+149
-81
lines changed

33 files changed

+149
-81
lines changed

src/app/docs/access-control-with-javascript/page.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ nextjs:
88
https://assets.terminusdb.com/docs/technical-documentation-terminuscms-og.png
99
---
1010

11+
# Access Control Reference Guide
12+
1113
**License**: Apache Version 2
1214

1315
## new AccessControl()

src/app/docs/acid-transactions-explanation/page.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ nextjs:
1010
https://assets.terminusdb.com/docs/technical-documentation-terminuscms-og.png
1111
---
1212

13+
# Acid Transactions Explanation
14+
1315
## What is ACID?
1416

1517
ACID ([Atomicity](#atomicity), [Consistency](#consistency), [Isolation](#isolation), [Durability](#durability)) are properties of database transactions that are generally considered desirable for many applications.

src/app/docs/add-a-document/page.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ nextjs:
1010
https://github.com/terminusdb/terminusdb-web-assets/blob/master/docs/js-client-use-add-documents.png?raw=true
1111
---
1212

13+
# Add Documents using Javascript
14+
1315
After you have imported the terminusdb\_client, [created a client](/docs/connect-with-the-javascript-client/), [connected to a database](/docs/connect-to-a-database/), and [added a schema](/docs/add-a-schema/), you can then use this client to insert a document that conforms to the schema.
1416

1517
## Insert documents

src/app/docs/add-a-schema-with-the-python-client/page.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ nextjs:
1010
https://assets.terminusdb.com/docs/python-client-use-add-a-schema.png
1111
---
1212

13+
# Add schema with Python
14+
1315
After you have imported the `terminusdb_client`, and [created a client](/docs/create-database-with-python-client/), and [connected to a database](/docs/connect-to-a-database-with-python-client/) you can create a schema.
1416

1517
## Insert schema document(s)

src/app/docs/add-a-schema/page.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ nextjs:
1010
https://github.com/terminusdb/terminusdb-web-assets/blob/master/docs/js-client-use-add-a-schema.png?raw=true
1111
---
1212

13+
# Add Schema using Javascript
14+
1315
After you have imported the terminusdb\_client, [created a client](/docs/connect-with-the-javascript-client/), and [connected to a database](/docs/connect-to-a-database/) you can create a schema.
1416

1517
## Create a schema

src/app/docs/add-documents-with-python-client/page.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ nextjs:
1010
https://assets.terminusdb.com/docs/python-client-use-add-documents.png
1111
---
1212

13+
# Add documents with Python
14+
1315
After you have imported the `terminusdb_client`, and [created a client](/docs/connect-with-python-client/), [connected to a database](/docs/connect-with-python-client/), and [added a schema](/docs/add-a-schema-with-the-python-client/), you can then use this client to insert a document that conforms to the schema.
1416

1517
## Insert a document

src/app/docs/add-documents-with-woql/page.md

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ nextjs:
1010
https://assets.terminusdb.com/docs/woql-add-documents.png
1111
---
1212

13+
# Add Documents with WOQL
14+
1315
> To use this HowTo, first [clone the Star Wars demo](/docs/clone-a-demo-terminuscms-project/) into your team on DFRNT TerminusDB cloud. You will then have full access to the data needed for this tutorial.
1416
1517
## Add a document in WOQL
@@ -42,53 +44,3 @@ and(
4244
add_triple("Person/John", "role", "v:SubdocumentId"),
4345
)
4446
```
45-
46-
## Delete a subdocument in WOQL
47-
48-
Subdocuments can be deleted using the `delete_document` keyword, but it's important to also delete the triple that links the subdocument from the parent document. Here we resolve the parent document in the variable `v:parentdoc`.
49-
50-
```javascript
51-
and(
52-
eq("v:subdoc", "Person/John/role/PersonRole/cxW1Egirxm8-QYrq"),
53-
triple("v:parentdoc", "role", "v:subdoc"),
54-
delete_document("v:subdoc"),
55-
delete_triple("v:parentdoc", "role", "v:subdoc"),
56-
)
57-
```
58-
59-
## Update a subdocument in WOQL
60-
61-
Let's combine creating and deleting a document into a single query to update the subdocument.
62-
63-
Subdocuments can't be updated in place using the `update_document` keyword which exists only for top level documents. You can update a subdocument by deleting the old subdocument and creating a new one with the updated content, including the `@linked-by` property, and updating the triple that links the subdocument.
64-
65-
This in place operation is only possible using random keyed identifiers on the subdocument. The alternative is to update the top level document.
66-
67-
```javascript
68-
select("v:oldsubdoc", "v:newsubdoc").
69-
and(
70-
eq("v:subdoc", "Person/John/role/PersonRole/cxW1Egirxm8-QYrq"),
71-
and(
72-
triple("v:parentdoc", "role", "v:oldsubdoc"),
73-
74-
delete_document("v:oldsubdoc"),
75-
insert_document(new doc({"@type": "PersonRole", "@linked-by": {"@id": "v:parentdoc", "@property": "role"}}),"v:newsubdoc"),
76-
77-
update_triple("v:parentdoc", "role", "v:newsubdoc", "v:oldsubdoc"),
78-
)
79-
)
80-
```
81-
82-
The parent document is resolved for the specific predicate, the old document gets deleted and a new document is created, linked to the parent document and the triple that links from the parent document is updated.
83-
84-
The old and new subdocuments are provided in the returned bindings via the selections of variables to return.
85-
86-
87-
88-
89-
90-
91-
92-
93-
94-

src/app/docs/advanced-filtering-with-graphql/page.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ nextjs:
88
https://assets.terminusdb.com/docs/graphql-advanced-filter.png
99
---
1010

11+
# Advanced Filtering
12+
1113
> To use this HowTo, first [clone the Star Wars demo](/docs/clone-a-demo-terminuscms-project/) into your team on DFRNT TerminusDB cloud. You will then have full access to the data needed for this tutorial.
1214
1315
TerminusDB exposes a _filter_ object, which can be used to select specific documents. See here for basic [Filtering](/docs/filter-with-graphql/)

src/app/docs/array/page.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ nextjs:
88
https://assets.terminusdb.com/docs/technical-documentation-terminuscms-og.png
99
---
1010

11+
# Array fields in the document UI
12+
1113
This example shows how `<FrameViewier/>` appears for a document `ArrayExamplePerson` with array fields in Create/ Edit or View mode. If a field is described as array it means the field can have more than one value to it in an ordered fashion. The field can also be considered as an optional field meaning it can be empty or filled.
1214

1315
## Demo

src/app/docs/back-links-in-graphql/page.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ nextjs:
88
https://assets.terminusdb.com/docs/graphql-backlink.png
99
---
1010

11+
# Back Links
12+
1113
> To use this HowTo, first [clone the Star Wars demo](/docs/clone-a-demo-terminuscms-project/) into your team on DFRNT TerminusDB cloud. You will then have full access to the data needed for this tutorial.
1214
1315
## Using a Back Link

0 commit comments

Comments
 (0)