You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/skills/no-sql-skill/SKILL.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: CloudBase Document Database
3
-
description: Work with CloudBase document database across multiple platforms. Choose the appropriate SDK for your platform (Web, Mini Program, etc.) to query, create, update, and delete data.
3
+
description: Work with CloudBase document database across multiple platforms to query, create, update, and delete data.
4
4
---
5
5
6
6
# CloudBase Document Database Skill
@@ -18,7 +18,7 @@ This skill directory is organized by platform to provide platform-specific guida
18
18
## Available Platform SDKs
19
19
20
20
### Web SDK
21
-
**Location:**`web-sdk/SKILL.md`
21
+
**Location:**`./web-sdk/SKILL.md`
22
22
23
23
Use the Web SDK for browser-based applications built with:
24
24
- React, Vue, Angular, or vanilla JavaScript
@@ -43,7 +43,7 @@ const app = cloudbase.init({
43
43
44
44
constdb=app.database();
45
45
```
46
-
46
+
Remember that, User should sign in before actually querying the database.
47
47
See `web-sdk/SKILL.md` for comprehensive Web SDK documentation.
48
48
49
49
### Other Platforms (Coming Soon)
@@ -69,10 +69,12 @@ Documents are JSON-like objects stored in collections:
69
69
field2:123,
70
70
nested: {
71
71
field:"value"
72
-
}
72
+
},
73
73
}
74
74
```
75
75
76
+
It is **Recommended** to use _id as the unique identifier for documents. It is automatically generated by the document database and is guaranteed to be unique across all documents in a collection.
77
+
76
78
### Query Operations
77
79
All SDKs support rich query capabilities:
78
80
- Simple equality queries
@@ -110,7 +112,7 @@ Standard database operations available across platforms:
110
112
## Common Patterns
111
113
112
114
### Authentication Integration
113
-
CloudBase database works seamlessly with CloudBase Authentication:
115
+
CloudBase database works seamlessly with CloudBase Authentication. It is **REQUIRED** to login before querying the database:
0 commit comments