Skip to content

Commit

Permalink
Merge pull request #27 from falkodev/master
Browse files Browse the repository at this point in the history
joins management in nested structure
  • Loading branch information
Tom Boutell committed Jan 18, 2019
2 parents 7c72823 + b4140ec commit dfb0241
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/modules/apostrophe-pieces-headless/index.js
Expand Up @@ -282,6 +282,12 @@ module.exports = {
}
if (field.type.match(/join/)) {
joins.push(field.name);
} else if (field.schema) {
field.schema.forEach(function(subField) {
if (subField.type.match(/join/)) {
joins.push(field.name + '.' + subField.name);
}
})
}
})

Expand Down

0 comments on commit dfb0241

Please sign in to comment.