APIv4 - Specify BridgeEntities to assist with joins
[civicrm-core.git] / ang / api4Explorer / Explorer.js
index 653ee7bd8f794f82aa88bc110bb4aa15bfacec0c..a4ccbe269ee3fae15e21f4503b9dcdbbfd484a16 100644 (file)
@@ -56,7 +56,8 @@
     $scope.loading = false;
     $scope.controls = {};
     $scope.langs = ['php', 'js', 'ang', 'cli'];
-    $scope.joinTypes = [{k: false, v: ts('Optional')}, {k: true, v: ts('Required')}];
+    $scope.joinTypes = [{k: false, v: 'FALSE (LEFT JOIN)'}, {k: true, v: 'TRUE (INNER JOIN)'}];
+    $scope.bridgeEntities = _.filter(schema, {type: 'BridgeEntity'});
     $scope.code = {
       php: [
         {name: 'oop', label: ts('OOP Style'), code: ''},