There are still farms in Manhattan and other parts of NYC. From the few I know off-hand:

- The Farm at the Javits Center (Hudson Yards) is a working rooftop farm, greenhouse, and has an orchard.

- On Randall’s Island there is a farm with raised beds, greenhouses, rice paddies, and also an orchard.

- Battery Urban Farm (Lower Manhattan) - not sure of this counts but its an operating educational farm that grows produce.

There are others.