getObjectFragment = ({
    schema,
    fragmentName,
    options
}) => {
    const fieldNames = getFragmentFieldNames({ schema, options });
    const childFragments = fieldNames.length && fieldNames.map(fieldName => getFieldFragment({
        schema,
        fieldName,
        options,
        getObjectFragment: getObjectFragment
    }))
        // remove empty values
        .filter(f => !!f);
    if (childFragments.length) {
        return `${fragmentName} { ${childFragments.join('\n')} }`;
    }
    return null;
}
Generates the default fragment for a collection
= a fragment containing all fields