1.3.4
New Libs
- yoga-grahpql handler
import yogaHandler from "https://deno.land/x/nhttp/lib/yoga.ts";
import { createSchema, createYoga } from "npm:graphql-yoga";
const yoga = createYoga({
schema: createSchema({...}),
});
app.any("/graphql", yogaHandler(yoga));
- http-logger
import logger from "https://deno.land/x/nhttp/lib/logger.ts";
app.use(logger());
app.get("/", (rev) => {
rev.log("hello log from home");
return "home";
});
// try this will print the errors.
app.get("/noop", (rev) => {
noop();
return "noop";
});