From 225affe42cfe45b2e0c43f592f07867bd1aa4e89 Mon Sep 17 00:00:00 2001 From: Joachim Van Herwegen Date: Wed, 9 Feb 2022 15:24:53 +0100 Subject: [PATCH] docs: Update config docs --- config/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/README.md b/config/README.md index 2320a4958..c9f42ddf9 100644 --- a/config/README.md +++ b/config/README.md @@ -25,12 +25,15 @@ and then add the following in your root config: ```json { "@id": "urn:solid-server:default:MetadataParser", - "ParallelHandler:_handlers": [ + "@type": "ParallelHandler", + "handlers": [ { "@type": "MyNewParser" } ] } ``` This will add the new parser to the list of metadata parsers. +The `@id` value is needed so Components.js knows which object to add the values to, +and the `@type` is needed so it can interpret the other fields (`handlers` in this case). Note that generally it is only advised to append to ParallelHandlers or key/value maps. In case the order is important this can not be guaranteed over separate files.