diff --git a/lib/apiRoutes.js b/lib/apiRoutes.js index bbd27ff..1dd9561 100644 --- a/lib/apiRoutes.js +++ b/lib/apiRoutes.js @@ -32,7 +32,7 @@ module.exports = self => { // option in their module configuration function searchRelationships(obj) { const shouldRecurse = recursions <= maxRecursions; - const shouldInclude = self.apos.modules[obj.withType] & + const shouldInclude = self.apos.modules[obj.withType] && self.apos.modules[obj.withType].options.export !== false; if (obj.type === 'relationship') {