[PR #9040/cc72fa07 backport][stable-8] groupby_as_dict: mention Jinja2's groupby filter (#9042)

groupby_as_dict: mention Jinja2's groupby filter (#9040)

Mention Jinja2's groupby filter.

(cherry picked from commit cc72fa0786)

Co-authored-by: Felix Fontein <felix@fontein.de>
pull/9054/head
patchback[bot] 2024-10-19 22:51:01 +02:00 committed by GitHub
parent 3e43029a32
commit 392e89ee86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ DOCUMENTATION = '''
author: Felix Fontein (@felixfontein) author: Felix Fontein (@felixfontein)
description: description:
- Transform a sequence of dictionaries to a dictionary where the dictionaries are indexed by an attribute. - Transform a sequence of dictionaries to a dictionary where the dictionaries are indexed by an attribute.
- This filter is similar to the Jinja2 C(groupby) filter. Use the Jinja2 C(groupby) filter if you have multiple entries with the same value,
or when you need a dictionary with list values, or when you need to use deeply nested attributes.
positional: attribute positional: attribute
options: options:
_input: _input: