getCollectionInfos = collection => {
  const collectionName = collection.options.collectionName;
  const typeName = collection.typeName ? collection.typeName : Utils.camelToSpaces(_initial(collectionName).join('')); // default to posts -> Post
  const schema = collection.simpleSchema()._schema;
  const description = collection.options.description ? collection.options.description : `Type for ${collectionName}`;
  return {
    ...collection.options,
    collectionName,
    typeName,
    schema,
    description,
  };
}
Extract relevant collection information and set default values
@param {*} collection