Skip to content

Commit 2007c68

Browse files
committed
document array support for __file mapping directive
1 parent e35fd72 commit 2007c68

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

infrastructure/web3-adapter/MAPPING_RULES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ to the file's public URL.
101101

102102
- The inner path (`avatar`) points to the field holding the file value.
103103
- An optional `,alias` sets the global field name (defaults to the inner path).
104+
- The value may be a single file or an **array** of files. Array paths such as
105+
`__file(images[].src)` are supported and each item is referenced/dereferenced.
104106
- **`toGlobal`**: a `data:` URI value is uploaded and replaced with a
105107
`w3ds://file?id=@<ename>/<meta-envelope-id>` URI. Values that are already
106108
`w3ds://file` URIs, plain URLs, or empty are passed through unchanged.

0 commit comments

Comments
 (0)