Skip to content

Commit a350ffd

Browse files
committed
Merge branch 'dev' into canary
2 parents 640e7ff + 6720fbf commit a350ffd

25 files changed

+589
-3185
lines changed

WOQL.and(

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
WOQL.and(
2+
WOQL.triple("v:Col", "system:collaborator_user", "doc:User_frabit"),
3+
//WOQL.triple("v:Agent", "system:agent_name", 'frabit'),
4+
WOQL.triple("v:RES", "system:collaborator", "v:Col"),
5+
WOQL.or(
6+
WOQL.triple("v:RES", 'type', 'system:Database')
7+
.triple("v:ORG", 'system:organization_database', 'v:RES')
8+
.eq("v:RES", "v:DB"),
9+
WOQL.triple('v:RES', 'system:organization_database', 'v:DB')
10+
.eq("v:RES", "v:ORG"),
11+
),
12+
WOQL.triple("v:DB", "system:database_name", "v:id")
13+
.triple("v:DB", "system:status", "system:active")
14+
.triple("v:ORG", "system:organization_database", "v:DB")
15+
.triple("v:ORG", "system:organization_name", "v:organization")
16+
.triple("v:ORG", "type", "v:orgtype")
17+
.group_by("v:RES", "v:Perm", "v:DBPerms")
18+
.triple("v:Col", "system:collaborator_permission", "v:Perm"),
19+
WOQL.opt().triple("v:ORG", "label", "v:organization name"),
20+
WOQL.opt().triple("v:ORG", "comment", "v:organization comment"),
21+
WOQL.opt().triple("v:ORG", "system:profile_icon", "v:organization icon"),
22+
WOQL.opt().triple("v:DB", "label", "v:label"),
23+
WOQL.opt().triple("v:DB", "comment", "v:comment"),
24+
//WOQL.opt().triple("v:DB", "system:profile_icon", "v:icon"),
25+
WOQL.opt().triple("v:DB", "system:public", "v:public")
26+
)
27+
28+
WOQL.and(
29+
// WOQL.triple("v:Ag2", "system:agent_name", "fra-bit")
30+
WOQL.triple("v:Col2", "system:collaborator_user", "doc:User_fra-bit")
31+
.triple("v:ORG", "system:collaborator", "v:Col2")
32+
.triple("v:ORG", "system:organization_name", "v:organization")
33+
.triple("v:ORG", "type", "v:orgtype")
34+
.group_by("v:Col2", "v:Perm2", "v:OrgPerms")
35+
.triple("v:Col2", "system:collaborator_permission", "v:Perm2"),
36+
WOQL.opt().triple("v:ORG", "label", "v:organization name"),
37+
WOQL.opt().triple("v:ORG", "comment", "v:organization comment"),
38+
WOQL.opt().triple("v:ORG", "system:profile_icon", "v:organization icon"),
39+
)

docs/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,11 @@ const TerminusClient = require("@terminusdb/terminusdb-client");
5757

5858
// Connect and configure the TerminusClient
5959
const client = new TerminusClient.WOQLClient("https://127.0.0.1:6363/", {
60-
db: "banker",
60+
dbid: "banker",
6161
user: "admin",
6262
key: "root",
6363
});
64-
65-
//to change the starting settings
66-
client.db("banker01");
64+
client.db("banker");
6765
client.organization("admin");
6866

6967
async function postAccount() {
@@ -117,7 +115,7 @@ To initialize `TerminusDB client` with custom options use
117115
const TerminusClient = require("@terminusdb/terminusdb-client");
118116

119117
const client = new TerminusClient.WOQLClient("https://127.0.0.1:6363/", {
120-
id: "test_db",
118+
dbid: "test_db",
121119
user: "admin",
122120
key: "my_secret_key",
123121
});

docs/_sidebar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
- [Push](api/woqlClient.js?id=push)
1717
- [Fetch](api/woqlClient.js?id=fetch)
1818
- [Insert CSV](api/woqlClient.js?id=insert-csv)
19-
- [Update CSV](api/woqlClient.js?id=update-csv)
2019
- [Get CSV](api/woqlClient.js?id=get-csv)
20+
- [Update CSV](api/woqlClient.js?id=update-csv)
2121
- [Delete CSV](api/woqlClient.js?id=delete-csv)
2222
- [copy](api/woqlClient.js?id=copy)
2323
- [server](api/woqlClient.js?id=server)

docs/api/typedef.md

Lines changed: 0 additions & 186 deletions
This file was deleted.

0 commit comments

Comments
 (0)