Configuration options for the server
decorators) 3. Middleware is discovered via ClassFactory from @RegisterClass(BaseServerMiddleware, key) classes 4. Builds the GraphQL schema with all registered resolvers 5. Starts the server with proper lifecycle hooks
// Minimal MJAPI 3.0 application (packages/api/src/index.ts):
import { createMJServer } from '@memberjunction/server-bootstrap';
// Import generated packages to trigger registration
import '@mycompany/generated-entities';
import '@mycompany/generated-actions';
import '@mycompany/generated-resolvers';
createMJServer().catch(console.error);
Creates and starts a MemberJunction API server with minimal configuration.
This is the primary entry point for MJ 3.0 applications. It: