Adds support for postgres when saving relation #3074 (#3084)

This commit is contained in:
Florent Vilmart
2016-11-21 09:22:16 -05:00
committed by GitHub
parent d137e27eb9
commit 11c6170ed1

View File

@@ -910,6 +910,8 @@ export class PostgresStorageAdapter {
updatePatterns.push(`$${index}:name = POINT($${index + 1}, $${index + 2})`);
values.push(fieldName, fieldValue.latitude, fieldValue.longitude);
index += 3;
} else if (fieldValue.__type === 'Relation') {
// noop
} else if (typeof fieldValue === 'number') {
updatePatterns.push(`$${index}:name = $${index + 1}`);
values.push(fieldName, fieldValue);