Skip to content

Commit

Permalink
feat: export relation's query client (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcikado authored Nov 13, 2024
1 parent dcec533 commit 597cf40
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"./factories": "./build/src/factories/main.js",
"./database": "./build/src/database/main.js",
"./orm": "./build/src/orm/main.js",
"./orm/relations": "./build/src/orm/relations/main.js",
"./seeders": "./build/src/seeders/main.js",
"./services/*": "./build/services/*.js",
"./types/*": "./build/src/types/*.js",
Expand Down
2 changes: 1 addition & 1 deletion src/orm/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @adonisjs/lucid
*
* (c) AdoniJS
* (c) AdonisJS
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
13 changes: 13 additions & 0 deletions src/orm/relations/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* @adonisjs/lucid
*
* (c) AdonisJS
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

export { BelongsToQueryClient } from './belongs_to/query_client.js'
export { HasManyQueryClient } from './has_many/query_client.js'
export { HasOneQueryClient } from './has_one/query_client.js'
export { ManyToManyQueryClient } from './many_to_many/query_client.js'

0 comments on commit 597cf40

Please sign in to comment.