The Nx Plugin for Graphql Code Generator contains executor and generator for managing Graphql applications within an Nx workspace.
Adding the Graphql Code Generator plugin to an existing Nx workspace.
yarn add -D @nx-tools/nx-graphql-codegen
npm install -D @nx-tools/nx-graphql-codegen
We can use plugin with bash or Nx console.
nx g @nx-tools/nx-graphql-codegen:configuration appName
We can the call codegen generate with the followin command:
nx codegen-generate appName