func LocationTypes(ctx context.Context, client *ent.Client) (*models.LocationTypeConnection, error) {
	lts, err := client.LocationType.Query().All(ctx)
	if err != nil {
		return nil, errors.Wrap(err, "querying location types")
	}
	edges := make([]*models.LocationTypeEdge, len(lts))
	for i, lt := range lts {
		edges[i] = &models.LocationTypeEdge{Node: lt}
	}
	return &models.LocationTypeConnection{Edges: edges}, err
}
// LocationTypes is a helper to bring location types
LocationTypes is a helper to bring location types
// LocationTypes is a helper to bring location types
func LocationTypes(ctx context.Context, client *ent.Client) (*models.LocationTypeConnection, error) {
	lts, err := client.LocationType.Query().All(ctx)
	if err != nil {
		return nil, errors.Wrap(err, "querying location types")
	}
	edges := make([]*models.LocationTypeEdge, len(lts))
	for i, lt := range lts {
		edges[i] = &models.LocationTypeEdge{Node: lt}
	}
	return &models.LocationTypeConnection{Edges: edges}, err
}
func LocationTypes ( ctx context . Context , client * ent . Client ) ( * models . LocationTypeConnection , error ) { lts , err := client . LocationType . Query ( ) . All ( ctx ) if err != nil { return nil , errors . Wrap ( err , " " ) } edges := make ( [ ] * models . LocationTypeEdge , len ( lts ) ) for i , lt := range lts { edges [ i ] = & models . LocationTypeEdge { Node : lt } } return & models . LocationTypeConnection { Edges : edges } , err }
LocationTypes is a helper to bring location types
LocationTypes is a helper to bring location types