Query scoping

I have a model called survey that has a relationship to a model called pipe.

Pipe has a json column for storing geojson as well as a WKT field for geometry calculations.

I want to exclude the pipe field from being retrieved in filament to speed up page loading. I think it's automatically loaded in laravel with eager loading on the relationship.

What's the best way to prevent retrieving those columns in Filament until I need them?

Cheers Dan
Was this page helpful?