20 lines · 912 B · TypeScript
RawDownload
import { definePlugin } from "@executor-js/sdk/core"; import { graphqlPlugin, type GraphqlPluginOptions } from "../sdk/plugin";import { GraphqlGroup } from "./group";import { GraphqlHandlers, GraphqlExtensionService } from "./handlers"; export { GraphqlGroup } from "./group";export { GraphqlHandlers, GraphqlExtensionService } from "./handlers"; // HTTP-augmented variant of `graphqlPlugin`. The returned plugin// carries the HTTP `routes`, `handlers`, and `extensionService` so a// host can mount the GraphQL HTTP surface. Hosts that compose an// `HttpApi` should import this. SDK-only consumers stay on// `@executor-js/plugin-graphql` and never load `@executor-js/api`.export const graphqlHttpPlugin = definePlugin((options?: GraphqlPluginOptions) => ({  ...graphqlPlugin(options),  routes: () => GraphqlGroup,  handlers: () => GraphqlHandlers,  extensionService: GraphqlExtensionService,}));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t