V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
metrue

EdgeQL: 在 Cloudflare Worker 部署 GraphQL 的工具

  •  
  •   metrue ·
    metrue · Mar 9, 2024 · 2032 views
    This topic created in 792 days ago, the information mentioned may be changed or developed.

    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
    
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3009 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 07:18 · PVG 15:18 · LAX 00:18 · JFK 03:18
    ♥ Do have faith in what you're doing.