0 Replies Latest reply on Oct 1, 2014 11:20 PM by david.pinn

    What is the relationship between Community and Tenant?

    david.pinn

      It seems you can fetch a community by tenantId, so are they the same thing? If not, what is the cardinality of the relationship between them?

       

      Here's the snippet of code from community.js that has confused me:

      /**
       * Searches persistence for a community that matches the tenantID of the given jive community.
       * If one is not found, the promise will resovle a null (undefined) value.
       * @param tenantID
       * @returns {Promise} Promise
       */
      exports.findByTenantID = function( tenantID ) {
          return find( {
              'tenantId' : tenantID
          }, true );
      };
      

       

      The 'true' argument that is passed to find tells the find function to expect only one element to be found.