gql:De用于Deno的通用GraphQL HTTP中间件

时间:2021-03-25 17:30:36
【文件属性】:
文件名称:gql:De用于Deno的通用GraphQL HTTP中间件
文件大小:28KB
文件格式:ZIP
更新时间:2021-03-25 17:30:36
graphql graphql-server graphql-api deno TypeScript gql 用于通用 HTTP中间件。 特征 :sparkles: 用可与std/http , 和 :high_voltage: 集成(通过graphiql: true ) 开始吧 香草 使用std/http最简单的设置: import { serve } from 'https://deno.land/std@0.90.0/http/server.ts' import { GraphQLHTTP } from 'https://deno.land/x/gql/mod.ts' import { buildSchema } from 'https://deno.land/x/graphql_deno@v15.0.0/mod.ts' const schema = buildSchema ( ` type Query { hello: String } ` ) const s = serve ( { port : 3000 } )
【文件预览】:
gql-master
----mod.ts(81B)
----common.ts(1KB)
----.github()
--------workflows()
----test()
--------mod.test.ts(3KB)
----LICENSE(1KB)
----examples()
--------vanilla.ts(546B)
--------opine.ts(477B)
--------tinyhttp.ts(496B)
----types.ts(216B)
----graphiql()
--------render.ts(6KB)
--------markup.ts(15KB)
----logo.png(15KB)
----http.ts(2KB)
----README.md(3KB)

网友评论