- 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.
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: Call
middleware
immediately after schema built - FIX: Expose
ModuleSessionInfo
- Add Default
ProviderScope
option;defaultProviderScope
- Performance Improvements; initial schema construction and context builder is way faster. (80% / 90% short response time)