Add __type property to GeoPoint fields in PostgresStorageAdapter (#3695)
* Add __type property to GeoPoint fields in PostgresStorageAdapter * Add test to check __type on GeoPoint queries
This commit is contained in:
committed by
Florent Vilmart
parent
0add7c0c50
commit
52828683ba
@@ -1074,6 +1074,7 @@ export class PostgresStorageAdapter {
|
||||
}
|
||||
if (object[fieldName] && schema.fields[fieldName].type === 'GeoPoint') {
|
||||
object[fieldName] = {
|
||||
__type: "GeoPoint",
|
||||
latitude: object[fieldName].y,
|
||||
longitude: object[fieldName].x
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user