joist-codegen 1.61.1 → 1.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -419,8 +419,8 @@ function generateEntityCodegenFile(config, dbMeta, meta) {
419
419
 
420
420
  ${maybeIsSoftDeleted}
421
421
 
422
- load<U, V>(fn: (lens: ${symbols_1.Lens}<${entity.type}>) => ${symbols_1.Lens}<U, V>): Promise<V> {
423
- return ${symbols_1.loadLens}(this as any as ${entityName}, fn);
422
+ load<U, V>(fn: (lens: ${symbols_1.Lens}<${entity.type}>) => ${symbols_1.Lens}<U, V>, opts: { sql?: boolean } = {}): Promise<V> {
423
+ return ${symbols_1.loadLens}(this as any as ${entityName}, fn, opts);
424
424
  }
425
425
 
426
426
  populate<H extends ${symbols_1.LoadHint}<${entityName}>>(hint: H): Promise<${symbols_1.Loaded}<${entityName}, H>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joist-codegen",
3
- "version": "1.61.1",
3
+ "version": "1.63.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "@types/pluralize": "0.0.29",
22
22
  "change-case": "^4.1.2",
23
23
  "is-plain-object": "^5.0.0",
24
- "joist-utils": "1.61.1",
24
+ "joist-utils": "1.63.0",
25
25
  "knex": "^2.3.0",
26
26
  "pg": "^8.8.0",
27
27
  "pg-structure": "^7.13.1",