I am using PostgreSQL database for Strapi backend. I will use geometry data type of PostgreSQL. I am getting a polygon coordinates from frontend. But I need to execute a PostgreSQL query before creating collection. Because polygon coordinates have to be converted to geometry type.
Or can PostgreSQL execute text queries while adding data?
I need to execute this query: ST_GeomFromText('POLYGON((${crx.request.body.data.coordinates}))',4326)