Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
at main 333 B view raw
1const { createYoga } = require('graphql-yoga'); 2const { useDeferStream } = require('@graphql-yoga/plugin-defer-stream'); 3const { createServer } = require('http'); 4const { schema } = require('./schema'); 5 6const yoga = createYoga({ 7 schema, 8 plugins: [useDeferStream()], 9}); 10 11const server = createServer(yoga); 12 13server.listen(3004);