From 597cf4006799ef86362b5c9b0a30f79fbf31991d Mon Sep 17 00:00:00 2001 From: Andrej Adamcik Date: Wed, 13 Nov 2024 08:48:53 +0100 Subject: [PATCH] feat: export relation's query client (#1061) --- package.json | 1 + src/orm/main.ts | 2 +- src/orm/relations/main.ts | 13 +++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/orm/relations/main.ts diff --git a/package.json b/package.json index 6827ce68..90e029b5 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/orm/main.ts b/src/orm/main.ts index 52752384..f740ff86 100644 --- a/src/orm/main.ts +++ b/src/orm/main.ts @@ -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. diff --git a/src/orm/relations/main.ts b/src/orm/relations/main.ts new file mode 100644 index 00000000..c44ddda3 --- /dev/null +++ b/src/orm/relations/main.ts @@ -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'