strapi-relation-names 0.0.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,14 +92,30 @@ After saving the settings, the Strapi Admin reloads automatically so open Conten
|
|
|
92
92
|
|
|
93
93
|
---
|
|
94
94
|
|
|
95
|
-
## ⚙️
|
|
95
|
+
## ⚙️ Configuration
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
Possible configuration keys are listed below; omitted keys keep the plugin defaults.
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
| Key | Description | Possible values |
|
|
100
|
+
| ------------- | ----------------------------------------------------------------------------------------------- | --------------- |
|
|
101
|
+
| `collections` | Limit relation names to the listed collection and single type UIDs. Leave empty to include all. | `string[]` |
|
|
102
|
+
|
|
103
|
+
Example:
|
|
104
|
+
|
|
105
|
+
```javascript
|
|
106
|
+
// config/plugins.{js,ts}
|
|
107
|
+
'strapi-relation-names': {
|
|
108
|
+
enabled: true,
|
|
109
|
+
config: {
|
|
110
|
+
collections: ['api::article.article', 'api::author.author'],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
101
113
|
```
|
|
102
114
|
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## ⚙️ Templates
|
|
118
|
+
|
|
103
119
|
Multiple placeholders can be combined:
|
|
104
120
|
|
|
105
121
|
```text
|