JHipster module, GraphQL integration for JHipster
This is a JHipster module, that is meant to be used in a JHipster application. The module adds support for GraphQL to existing JHipster web applications which were built with the Node.js Blueprint. When run, this generator installs @nestjs/graphql for the server application and scaffolds resolvers for the user entity and all other entities present in the application. For the client application, @apollo/client is installed and all REST calls related to entities are replaced by corresponding GraphQL requests. Angular, React and Vue are supported.
As this is a JHipster module, JHipster must already be installed. It is also highly recommended that the application is initially built with the Node.js Blueprint.
To install this module:
npm install -g generator-jhipster-gql
To update this module:
npm update -g generator-jhipster-gql
yo jhipster-gql
This option controls which schema is used for building the GraphQL typing information in the client application.
This option controls which GraphQL endpoint is called from the client application
This options controls where the GraphQL types and selection sets are defined.
In the default setup (GraphQL
) this is achieved via GraphQL documents with the help of GraphQL Code Generator Typescript Operations.
Alternatively, it is possible to store the definitions in TypeScript classes using graphql-typeop with the TypeScript
option.
yo jhipster-gql:entity-client-enable <ENTITY_NAME>
yo jhipster-gql:entity-client-disable <ENTITY_NAME>
Apache-2.0 © Markus Glutting