'Micronaut cli graphql setup

Is it possible to pass a feature to micronaut cli to integrate a new application with graphQL, for example like this:

mn create-app -f grephql name


Solution 1:[1]

Currently no. The current GraphQL support does not have a corresponding feature in the CLI. https://github.com/micronaut-projects/micronaut-graphql

Solution 2:[2]

Check out MicrostarterCli that's third-party tool. You can easily generate graphql endpoints in a Micronaut project using this command:

mc entity -e <your--entity> --graphql

Example:

mc entity -e fruit --graphql

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 James Kleeh
Solution 2 Ahmed Al-Hashimi