Fix creation

This commit is contained in:
adrinr 2023-02-23 10:28:24 +01:00
parent 70689c0369
commit 9e0d003038
2 changed files with 2 additions and 3 deletions

View File

@ -741,6 +741,7 @@ export class ExternalRequest {
table,
},
}
// can't really use response right now
const response = await getDatasourceAndQuery(json)
// handle many to many relationships now if we know the ID (could be auto increment)

View File

@ -415,9 +415,7 @@ class InternalBuilder {
if (opts.disableReturning) {
return query.insert(parsedBody)
} else {
return query
.insert(parsedBody)
.returning(generateSelectStatement(json, knex))
return query.insert(parsedBody).returning("*")
}
}