Closed chrismytton closed 9 years ago
Switch to using the embedDocuments method, which in turn calls populateMemberships but respects the ?embed parameter.
embedDocuments
populateMemberships
?embed
Fixes https://github.com/mysociety/popit-api/issues/91 Fixes https://github.com/mysociety/popit/issues/682
Looks fine to me.
Switch to using the
embedDocuments
method, which in turn callspopulateMemberships
but respects the?embed
parameter.Fixes https://github.com/mysociety/popit-api/issues/91 Fixes https://github.com/mysociety/popit/issues/682