Comments (4)
@eldadfux
Thanks i really appreciate it.
from appwrite.
Confirmed. I will check it out and try to add some docs on this issue later today or tomorrow.
from appwrite.
@MrNiceDev don't want to leave you hanging until i'll be able to complete missing docs.
Here is an example JSON with complete collection structure, of course this is not a replacement for full documentation but at least something to be able to play around with.
{
"$collection": 0,
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"name": "Articles",
"structure": true,
"rules": [
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Source",
"key": "source",
"type": "text",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Type",
"key": "type",
"type": "text",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "URL",
"key": "url",
"type": "text",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Language",
"key": "language",
"type": "text",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Title",
"key": "title",
"type": "text",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Description",
"key": "description",
"type": "text",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Image",
"key": "image",
"type": "url",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Body",
"key": "body",
"type": "text",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Body Length",
"key": "bodyLength",
"type": "numeric",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Section",
"key": "section",
"type": "text",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Tags",
"key": "tags",
"type": "text",
"default": "",
"required": false,
"array": true
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Create Date",
"key": "createdAt",
"type": "numeric",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Update Date",
"key": "updatedAt",
"type": "numeric",
"default": "",
"required": false,
"array": false
},
{
"$collection": "rules",
"$permissions": {
"read": [
"*"
],
"write": [
"role:admin"
]
},
"label": "Comments",
"key": "comments",
"type": "document",
"default": "",
"required": false,
"array": true
}
]
}
from appwrite.
I have just updated the rules documentation on https://appwrite.io/docs/rules. Please let me know everything is clear. I have added examples for both the creation of a simple collection and a collection with nested children.
from appwrite.
Related Issues (20)
- 🐛 Bug Report: i can't create a new project
- 🚀 Enhancement: Add new option to API keys HOT 2
- 🐛 Bug Report: Inconsistency in User Verification Status between Email and Phone Number HOT 3
- 🐛 Bug Report: I can't add an attribute or delete.. HOT 2
- 🐛 Bug Report: Webhooks don't work with IP Address as Domain HOT 1
- 🐛 Bug Report: Queries don't accept empty string HOT 1
- createEmailSession has been superseded HOT 2
- 🐛 Bug Report: 500 Internal Error HOT 1
- 🐛 Bug Report: Function Not Deleted Instantly Causing a Restore HOT 3
- 🐛 Bug Report: JWT still valid after Session Timeout HOT 3
- 🐛 Bug Report: Failed to create connection in appwrite-worker-mails container HOT 2
- 🚀 Enhancement: Missing Country for Locale endpoint -- `Palestine` HOT 2
- 🐛 Bug Report: Using deleteMfaAuthenticator causes Error HOT 1
- 🐛 Bug Report: Signing key cannot be empty
- 🚀 Enhancement: Support SQLite HOT 1
- 🐛 Bug Report: OAuth no longer works after revoking access directly from Github
- 🐛 Bug Report: The Console UI is broken on a few pages and modals HOT 2
- 🚀 Enhancement: Support '7d' range for usage queries
- 🐛 Bug Report: Uploading a file on a bucket using react native not working HOT 5
- Is there any way to implement Single Sign In using Appwrite? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appwrite.