mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix code snippets in "Configuring Collections, Fields, and Relations" guide (#23865)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
This commit is contained in:
committed by
GitHub
parent
22923650f3
commit
183f1012f4
@@ -171,3 +171,4 @@
|
||||
- mmsardar
|
||||
- ubercj
|
||||
- Julias0
|
||||
- anassarfraz
|
||||
|
||||
@@ -46,7 +46,7 @@ router.post('/', async (req, res) => {
|
||||
|
||||
const data = await collectionsService.readOne(collectionKey);
|
||||
|
||||
res.json(record);
|
||||
res.json(data);
|
||||
});
|
||||
```
|
||||
|
||||
@@ -146,7 +146,7 @@ router.post('/', async (req, res) => {
|
||||
field.field,
|
||||
);
|
||||
|
||||
res.json(createdField);
|
||||
res.json(data);
|
||||
});
|
||||
```
|
||||
|
||||
@@ -189,7 +189,7 @@ router.patch('/', async (req, res) => {
|
||||
'field_name',
|
||||
);
|
||||
|
||||
res.json(updatedField);
|
||||
res.json(data);
|
||||
});
|
||||
```
|
||||
|
||||
@@ -251,7 +251,7 @@ router.post('/', async (req, res) => {
|
||||
|
||||
const data = await relationsService.readOne(data);
|
||||
|
||||
res.json(record);
|
||||
res.json(data);
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user