Get a tenant

Through this library it is possible to retrieve data from a tenant through a query sent in the get method.

const tenants = require('linkapi-sdk/utils/tenants');

const query = {
  // title: 'title',
  // _id: 'id',
  externalKey: '123'
};

const tenant = await tenants.get(query);