release: WRNexusJS 0.8.0
Quality / quality (ubuntu-latest) (push) Failing after 21s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
Clintchiz committed 2026-08-02 23:18:51 +05:30
1 parent 87507edf59
commit 586a6db8ff
625 files changed
+243608 -11210

No files matched your search

@@ -0,0 +1,14 @@
import { createGraphqlHandler } from "@wrnexus/graphql";
const graphql = createGraphqlHandler({
maxDepth: 8,
maxAliases: 20,
allowIntrospection: false,
async execute(request) {
return { data: { example: request.operationName ?? "anonymous" } };
},
});
export function POST(ctx: { req: Request }): Promise<Response> {
return graphql(ctx.req);
}