code: function exposeAttributes(collection) {
      function exposeModelAttributes(item) {
          // Make sure that relations are excluded
          return Object.assign(item, item.serialize({ shallow: true }));
      }
      if (collection) {
          if (collection.hasOwnProperty('length')) {
              return collection.map((item) => { return exposeModelAttributes(item); });
          }
          return exposeModelAttributes(collection);
      }
      return collection;
  }
docs: Quick workaround allowing GraphQL to access model attributes directly
  (to access a bookshelf model attribute (like model.name), we have to use the .get() method)
  
  @param {object} collection
  @returns {*}