- Remove circular dep support and using name in definitions are also removed
🚀 BREAKING CHANGE! ; circular deps must be fixed in the projects which uses old version
- Reimplement
forRoot
andforChild
logic
- Remove
modulesMap
- Generate more readable module names
- Reimplement and optimize schema merge logic
- Remove
mergeModules
- Add more unit tests
- Implement better
directiveResolvers
logic
- Make sure session is deleted from memory when WS connection is terminated
- Custom logger definition enhancement
- Move
composeResolvers
toutils
resolvers
field is now able to take an array of resolvers.
typescript import { GraphQLModule } from '@graphql-modules/core'; import { loadResolversFiles, loadSchemaFiles } from '@graphql-modules/sonar'; export const UserModule = new GraphQLModule({ typeDefs: loadSchemaFiles(__dirname + '/schema/'), resolvers: loadResolversFiles(__dirname + '/resolvers/'), });
- FIX: Callmiddleware
immediately after schema built
- FIX: ExposeModuleSessionInfo
- Add DefaultProviderScope
option;defaultProviderScope
- Performance Improvements; initial schema construction and context builder is way faster. (80% / 90% short response time)