William Cheng 4be605bcb7
GraphQL Server (#1603)
* Add GraphQL express/apollo server generator

* add basic resolvers; adjust parameters/input types

* small adjustments and improvements

* adjust logger config for GraphQL generators

* remove MaxPermSize form bash script as it will be removed from later Java versions; add isNullable utility helper method; Adjust TODOs for graphql implementation

* re-created samples for graphql config and server generators

* re-added templates for graphql config generator

* add graphql-config-petstore bash script

* add isNullable utility method

* fix javadoc issues

* adjust licence headers

* rename Generator to Codegen for GraphQL classes

* renaming, minor enhancement to graphql generator

* add graphql server samples

* add windows batch files, rename directory
2018-12-05 18:20:53 +08:00

398 B

GraphQL express API server

This is a sample server Petstore server. For this sample, you can use the api key special-key to test the authorization filters.

Requirements

  • node 10+

Gettings started

npm install
npm run start

TODOs

  • use ID-type for unique identifiers instead of Int (detect UUID)
  • add example responses to resolvers.mustache
  • support for union types