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)
- 🚀 Enhancement: Vipps MobilePay oauth provider HOT 1
- 🐛 Bug Report: Double typo in credit card enum HOT 1
- 🐛 Bug Report: Queries doesn't work on non-ascii characters HOT 1
- 🐛 Bug Report: Domains Not Unassigned on Function Delete
- 🐛 Bug Report: Can't add a relationship to the existing document from Cloud Console HOT 3
- 🐛 Bug Report: CLI config for integer fields uses invalid default min and max values HOT 2
- 🐛 Bug Report: Why do I still encounter CORS issues when requesting functions despite adding a Web Platform and setting the host name? HOT 1
- 🚀 Enhancement: Client: set permission scope
- 🚀 Enhancement: Add support for push notification channels (Android/FCM) HOT 1
- 🐛 Bug Report: Missing scope throws Uncaught AppwriteException: Invalid redirect
- 🚀 Enhancement: Accepts Hashed Passwords in Login/Signup endpoints HOT 2
- 🐛 Bug Report: Stats shows only last 25days, end of every day, it hides 26th day. HOT 4
- 📚 Documentation: What's the realtime websocket URL? HOT 1
- AppwriteException: Database not found HOT 4
- 🐛 Bug Report: Recreate Same Name Relationship Attribute Only Self-Hosted HOT 5
- 🐛 Bug Report: No logs for failed index
- 📚 Documentation: createToken says it will create a user if they do not exist
- 🐛 Bug Report: SMS Sending via TextMagic stuck at "processing" status HOT 1
- 🐛 Bug Report: Receiving a general error for correct inputs using an email that account was previously deleted for HOT 1
- 🚀 Enhancement: Support Vonage Messages API for Messaging 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.