func EquipmentPortTypes(ctx context.Context, client *ent.Client) (*models.EquipmentPortTypeConnection, error) {
	ets, err := client.EquipmentPortType.Query().All(ctx)
	if err != nil {
		return nil, errors.Wrap(err, "querying equipment types")
	}
	edges := make([]*models.EquipmentPortTypeEdge, len(ets))
	for i, et := range ets {
		edges[i] = &models.EquipmentPortTypeEdge{Node: et}
	}
	return &models.EquipmentPortTypeConnection{Edges: edges}, err
}
// EquipmentPortTypes is a helper to bring equipment port types
EquipmentPortTypes is a helper to bring equipment port types
// EquipmentPortTypes is a helper to bring equipment port types
func EquipmentPortTypes(ctx context.Context, client *ent.Client) (*models.EquipmentPortTypeConnection, error) {
	ets, err := client.EquipmentPortType.Query().All(ctx)
	if err != nil {
		return nil, errors.Wrap(err, "querying equipment types")
	}
	edges := make([]*models.EquipmentPortTypeEdge, len(ets))
	for i, et := range ets {
		edges[i] = &models.EquipmentPortTypeEdge{Node: et}
	}
	return &models.EquipmentPortTypeConnection{Edges: edges}, err
}
func EquipmentPortTypes ( ctx context . Context , client * ent . Client ) ( * models . EquipmentPortTypeConnection , error ) { ets , err := client . EquipmentPortType . Query ( ) . All ( ctx ) if err != nil { return nil , errors . Wrap ( err , " " ) } edges := make ( [ ] * models . EquipmentPortTypeEdge , len ( ets ) ) for i , et := range ets { edges [ i ] = & models . EquipmentPortTypeEdge { Node : et } } return & models . EquipmentPortTypeConnection { Edges : edges } , err }
EquipmentPortTypes is a helper to bring equipment port types
EquipmentPortTypes is a helper to bring equipment port types