how can i combine the documents with the same group value under the same accordion

Viewed 22

I have these data

[{"key":"hello","value":"hi","lookupDirectionCode":"INTERNAL","lookupGroupCode":"FA"},{"key":"BYE","value":"bye","lookupDirectionCode":"EXTERNAL","lookupGroupCode":"FA"},{"key":"SALAM","value":"salam","lookupDirectionCode":"INTERNAL","lookupGroupCode":"SU"},{"key":"GOOD_MORNING","value":"goodmorning","lookupDirectionCode":"INTERNAL","lookupGroupCode":"SU"},{"key":"BONJOUR","value":"bonjour","lookupDirectionCode":"INTERNAL","lookupGroupCode":"VA"}]

I want to group and display them under accordions based on the "lookupGroupCode" value

0 Answers
Related