chore: update @mikro-orm dependencies to version 7.0.0-rc.0#298
Draft
xcfox wants to merge 13 commits intomodevol-com:mainfrom
Draft
chore: update @mikro-orm dependencies to version 7.0.0-rc.0#298xcfox wants to merge 13 commits intomodevol-com:mainfrom
xcfox wants to merge 13 commits intomodevol-com:mainfrom
Conversation
Contributor
xcfox
commented
Feb 10, 2026
- Bumped versions of @mikro-orm/core and @mikro-orm/libsql to 7.0.0-rc.0 in package.json files for examples and packages.
- Updated peer dependencies in @gqloom/mikro-orm to require @mikro-orm/core and @mikro-orm/sql version 7.0.0.
- Refactored entity schema and resolver factory to accommodate changes in MikroORM v7, including type adjustments and method updates.
- Enhanced tests to reflect the new schema and resolver behaviors, ensuring compatibility with the updated MikroORM version.
…t related package configurations - Bumped versions of @mikro-orm/core and @mikro-orm/libsql to 7.0.0-rc.0 in package.json files for examples and packages. - Updated peer dependencies in @gqloom/mikro-orm to require @mikro-orm/core and @mikro-orm/sql version 7.0.0. - Refactored entity schema and resolver factory to accommodate changes in MikroORM v7, including type adjustments and method updates. - Enhanced tests to reflect the new schema and resolver behaviors, ensuring compatibility with the updated MikroORM version.
… logic - Updated the resolver factory to enhance the handling of collection and reference fields, ensuring proper scoping and loading of related entities. - Refactored the resolve functions to utilize the EntityManager for better performance and clarity. - Adjusted tests to reflect changes in resolver behavior and improved error handling in the test suite.
- Updated the resolver's `resolve` function to simplify the loading of reference fields, ensuring it directly checks for null values. - Added a test case to verify that the resolver correctly returns null when the relation value is null, enhancing robustness in handling edge cases.
- Added the `kyselySilk` function to facilitate the integration of Kysely tables with GraphQL schemas. - Implemented `unravelKysely` method in `MikroWeaver` to handle Kysely entity configurations and generate GraphQL types. - Enhanced type definitions for Kysely configurations and added related tests to validate functionality and type inference. - Updated existing tests to include scenarios for Kysely table handling, ensuring robust type checks and schema generation.
- Streamlined the logic for determining GraphQL types in the MikroWeaver class, enhancing type normalization and wrapping. - Removed redundant checks and functions, consolidating type handling into a single method for better clarity and maintainability. - Updated the handling of nullable and array types to ensure correct GraphQL type generation based on entity properties. - Improved overall code structure and readability, facilitating future enhancements and debugging.
…eaver - Reintroduced the `unravelKysely` method in the MikroWeaver class to facilitate Kysely entity configurations and GraphQL type generation. - Added a WeakMap for Kysely object configurations to improve type handling and management. - Enhanced the `getKyselyGraphQLType` method to streamline GraphQL type creation based on entity metadata and configurations. - Improved overall code structure and readability, ensuring better maintainability and future enhancements.
…L integration - Updated the KyselyTableSilk interface to use Partial types for improved flexibility in GraphQL type generation. - Adjusted nullable and list methods to reflect the new Partial type definitions, ensuring better handling of optional fields. - Improved overall type safety and clarity in the integration of Kysely tables with GraphQL schemas.
…ependency - Updated package.json to set version to 0.17.0-next.2 and include Kysely as a dependency. - Enhanced pnpm-lock.yaml to reflect the addition of Kysely version 0.28.11. - Modified index.ts to incorporate Kysely types for improved type safety in KyselyTableSilk interface. - Updated schema.spec.ts to include default values for fields and enable processOnCreateHooks in Kysely options.
…ype generation - Updated package.json to set version to 0.17.0-next.3. - Modified MikroWeaver methods to improve GraphQL type generation by passing additional parameters for better context handling. - Adjusted schema tests to include author field in Book type, ensuring accurate representation in generated GraphQL schema.
…posed in GraphQL schema - Updated MikroWeaver to skip GraphQL field generation for oneToMany and manyToMany properties, aligning with expected behavior in schema generation. - Added tests to ensure that these relationships do not appear in the generated GraphQL schema, confirming the correct implementation of the changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.