We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb11ed8 commit d6626b4Copy full SHA for d6626b4
src/server/templates/typescript.ts
@@ -154,7 +154,7 @@ export const apply = async ({
154
setofOptionsInfo = `SetofOptions: {
155
from: ${JSON.stringify(typesById[fn.args[0].type_id].format)}
156
to: ${JSON.stringify(fn.return_table_name)}
157
- isOneToOne: ${Boolean(fn.returns_multiple_rows)}
+ isOneToOne: ${Boolean(!fn.returns_multiple_rows)}
158
isSetofReturn: true
159
}`
160
}
@@ -176,7 +176,7 @@ export const apply = async ({
176
177
from: "*"
178
179
180
isSetofReturn: ${fn.is_set_returning_function}
181
182
0 commit comments