在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):dotansimha/graphql-yoga开源软件地址(OpenSource Url):https://github.com/dotansimha/graphql-yoga开源编程语言(OpenSource Language):TypeScript 89.5%开源软件介绍(OpenSource Introduction):GraphQL YogaFully-featured GraphQL Server with focus on easy setup, performance & great developer experience Read the 2.0 announcement blog post Read the docs Installationnpm i @graphql-yoga/node graphql Basic UsageThis is a very simple example of how to use it: const { createServer } = require('@graphql-yoga/node')
// Provide your schema
const server = createServer({
schema: {
typeDefs: `
type Query {
ping: String
}
`,
resolvers: {
Query: {
ping: () => 'pong',
},
},
},
})
// Start the server and explore http://localhost:4000/graphql
server.start() Overview
Features
ContributingIf this is your first time contributing to this project, please do read our Contributor Workflow Guide before you get started off. Feel free to open issues and pull requests. We're always welcome support from the community. Code of ConductHelp us keep Yoga open and inclusive. Please read and follow our of Conduct as adopted from Contributor Covenant LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论