Custom Fields with custom data types #6922
Replies: 1 comment
-
I encountered the exact same issue here. I am using a postgres adapter to use supabase as DB, and i am working with AI technology to create a RAG system.
In this case, in order to store embeddings in the database articles table, the field type in the payload Article.ts collection file AND the column type in the DB table NEED to match. However as we all know there is a limited selection of types native to payloads framework: array so just like my collegue here i ask does anyone know how to create custom field types? |
Beta Was this translation helpful? Give feedback.
-
While reviewing the documentation for creating custom Fields, I didn't see any mention of how to go about changing the underlying database type.
I have a Postgres database with some unusual column types, such as name (see table 8.5) that I'm trying to make a Payload schema for. I also am interested in Point support for Postgres. Solving either of these problems, as far as I can tell, will require modifications to the interpretation of the 'type' field. Aka:
Is there any documentation on custom Field type options? What would you say the level of effort would be for adding a custom Field type option?
Beta Was this translation helpful? Give feedback.
All reactions