Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
at main 455 B view raw
1// NOTE: This currently fails because responses for @defer/@stream are not sent 2// as multipart responses, but the request fails silently with an empty JSON response payload 3 4const { ApolloServer } = require('@apollo/server'); 5const { startStandaloneServer } = require('@apollo/server/standalone'); 6const { schema } = require('./schema'); 7 8const server = new ApolloServer({ schema }); 9 10startStandaloneServer(server, { 11 listen: { 12 port: 3004, 13 }, 14});