import { buildSchema , SchemaOverrideHandler } from "@camberi/firecms" ; param entityId param path export const customSchemaOverrideHandler = ( { entityId , path } ) => { if ( entityId === "B0017TNJWY" && path === "products" ) { const customProductSchema = buildSchema ( { name : "Custom product" , properties : { name : { title : "Name" , description : "This entity is using a schema overridden by a schema resolver" , validation : { required : true } , dataType : "string" } } } ) ; console . log ( "Used custom schema resolver" , path , entityId ) ; return { schema : customProductSchema } ; } } ;