I have implemented the following code in Loopback 4 to define a number (float) field, but unfortunately I am not seeing float values in my database:
@property({
type: 'number',
jsonSchema: {
format: 'float',
},
})
Field: number;
My database is MySQL and I used Loopback migrate with int(11) type. The documentation only mentions the number
type (docs)
Does anyone have any suggestions?