UNPKG

@paroicms/server

Version:
13 lines 512 B
import { siteReadyGuard } from "../../graphql/graphql.types.js"; import { authGuard } from "../auth/auth.helper.js"; import { findOneNode } from "./node.queries.js"; export const extendLNodeWrapWithNodeResolver = { LNodeWrap: { node: async ({ nodeId }, _args, { siteContext, httpContext }) => { authGuard(httpContext); siteReadyGuard(siteContext); return await findOneNode(siteContext, nodeId); }, }, }; //# sourceMappingURL=node.resolver.extend.js.map