Hello, why I get this error message?
TypeError: Target data type could not be guessed, you should use prepared statements for accurate type mapping. Value: { full_name: 'Jsjsjsjs', profile_image: 'NULL', phone: 'NU }
User Type user_information:
CREATE TYPE user_information ( full_name text, profile_image text, phone text );
Query:
const query = `INSERT INTO users (user_id, email, password, user_details, user_since) VALUES (?, ?, ?, ?, ?);`; const result = await client.execute(query, [ userid, body.email, body.password, { full_name: body.fullname, profile_image: 'NULL', phone: 'NULL }, luxon.DateTime.now() ], { prepared: true });