Skip to content

Comments

chore: update @mikro-orm dependencies to version 7.0.0-rc.0#298

Draft
xcfox wants to merge 13 commits intomodevol-com:mainfrom
xcfox:mikro-v7
Draft

chore: update @mikro-orm dependencies to version 7.0.0-rc.0#298
xcfox wants to merge 13 commits intomodevol-com:mainfrom
xcfox:mikro-v7

Conversation

@xcfox
Copy link
Contributor

@xcfox 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.

xcfox added 13 commits February 10, 2026 19:15
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant