Skip to content

v1.19.0

Compare
Choose a tag to compare
@enisdenjo enisdenjo released this 05 Jun 13:54
· 41 commits to main since this release

1.19.0 (2023-06-05)

Bug Fixes

  • use: process global is not available in all environments and NODE_ENV doesn't necessarily depict production vs. development (d08ead3)

Features

Examples

Start the server with uWebSockets.js

import uWS from 'uWebSockets.js'; // yarn add uWebSockets.js@uNetworking/uWebSockets.js#<version>
import { createHandler } from 'graphql-http/lib/use/uWebSockets';
import { schema } from './my-graphql-schema';

uWS
  .App()
  .any('/graphql', createHandler({ schema }))
  .listen(4000, () => {
    console.log('Listening to port 4000');
  });