diff options
Diffstat (limited to 'src/data/composite/wiki-properties/reverseSingleReferenceList.js')
-rw-r--r-- | src/data/composite/wiki-properties/reverseSingleReferenceList.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/data/composite/wiki-properties/reverseSingleReferenceList.js b/src/data/composite/wiki-properties/reverseSingleReferenceList.js new file mode 100644 index 00000000..d180b12d --- /dev/null +++ b/src/data/composite/wiki-properties/reverseSingleReferenceList.js @@ -0,0 +1,24 @@ +import {input, templateCompositeFrom} from '#composite'; + +import {exposeDependency} from '#composite/control-flow'; +import {inputWikiData, withReverseSingleReferenceList} from '#composite/wiki-data'; + +export default templateCompositeFrom({ + annotation: `reverseSingleReferenceList`, + + compose: false, + + inputs: { + data: inputWikiData({allowMixedTypes: false}), + ref: input({type: 'string'}), + }, + + steps: () => [ + withReverseSingleReferenceList({ + data: input('data'), + ref: input('ref'), + }), + + exposeDependency({dependency: '#reverseSingleReferenceList'}), + ], +}); |