Hi! I have a problem.
I want to update bigQuery data through retool, and I need to handle array of object with possible null values.
I tried using transformer to adjust the types and make sure everything is ok, but no matter how i address it - i still get the error "parameter type must be provided for null values."
please let me know how to solve it.
i tried both GUI and SQL and nothing works,
here is an example of my code from the transformer while using GUI with using Bulk insert records : (general names)
const data = {{ formData }}
const transformedData = data.map(item => ({
keyName: item.keyName !== null ? item.keyName : {{{ RT$BQ_TYPE: 'FLOAT64', value: null }}},
keyName2: item.keyName2,
keyName3: item.keyName3 !== null ? item.keyName3 : {{{ RT$BQ_TYPE: 'STRING', value: null }}},
keyName4: item.keyName4,
keyName5: item.keyName5 !== null ? item.keyName5 :{{ { RT$BQ_TYPE: 'STRING', value: null }}}
}));
return transformedData;