I am storing my struct values in google data store. Here is my struct:
type Appointment struct {
ID string
Appointment Date string
Start Time string
End Time string
Select Specialization string
Smoking Status string
}
I have stored some data using datastore, but later changed the data type from string to bool for the field "Smoking Status" then the data store is throwing an error:
{"error":{"message":"data store: cannot load field \"Smoking Status\" into a \"simplysthealth.Encounter\": type mismatch: string versus bool"}}
Is there any feasible solution for this?