V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
metrue
V2EX  ›  分享创造

EdgeQL: 在 Cloudflare Worker 部署 GraphQL 的工具

  •  
  •   metrue ·
    metrue · 64 天前 · 1597 次点击
    这是一个创建于 64 天前的主题,其中的信息可能已经有所发展或是发生改变。

    EdgeQL 是我为了在 edge 环境快速构建 GraphQL 服务而实现的一个轻量框架,欢迎大家尝试和反馈, 目前支持 Cloudflare Worker 和 Bun ,正在努力支持所有的 JavaScript runtimes.

    
    import { EdgeQL } from 'edgeql'
    
    const app = new EdgeQL()
    const schema = `
    type Query {
      hello: String
    }
        `
    app.handle(schema, (ctx: Context) => 'world')
    
    export default app
    
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   922 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:36 · PVG 05:36 · LAX 14:36 · JFK 17:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.