class OrientNpmGroupDataFacet extends FacetSupport {

  @VisibleForTesting
  protected boolean shouldServeFirstResult(final List<?> packages, final NpmPackageId packageId) {
    return packages.size() == 1 || (!mergeMetadata && isEmpty(packageId.scope()));
  }

  @Inject public  OrientNpmGroupDataFacet(
      @Named("${nexus.npm.mergeGroupMetadata:-true}") final boolean mergeMetadata);

}