0.3.0 • Published 2 years ago
@adgstudio/graphql-generator v0.3.0
Graphql Generator
Generate graphql object, type definition and merge sdl from graphql sdl/s
Install
install from npm
npm install -D @adgstudio/graphql-generator
Usage
Generate Graphql Types
Generate graphql typescript types from graphql sdl file
import { GraphqlTypesGenerator } from "@adgstudio/graphql-generator";
async function main() {
const generator = new GraphqlTypesGenerator();
await factory.generate("./src/**/*.graphql", {
outputPath: "path/to/destination.ts",
});
}
main();
Generate Graphql Object
Generate graphql object definition from graphql sdl file
import { GraphqlObjectGenerator } from "@adgstudio/graphql-generator";
async function main() {
const generator = new GraphqlObjectGenerator();
await generator.generate("./src/modules/**/*.graphql", {
outputPath: "path/to/destination.ts",
});
}
main();
Merge graphql sdl to a single file
Merge multiple graphql sdl files to a single graphql sdl file
import { GraphqlSdlFactory } from "@adgstudio/graphql-generator";
async function main() {
const generator = new GraphqlSdlFactory();
await generator.merge("./src/modules/**/*.graphql", {
outputPath: "path/to/destination.graphql",
});
}
main();
Contributing
Fork this repo and create pull request to dev
branch
Support
0.1.20
2 years ago
0.1.21
2 years ago
0.3.0
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.19
2 years ago
0.2.2
2 years ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.16
2 years ago
0.1.15
2 years ago
0.1.15-rc.3
2 years ago
0.1.15-rc.2
2 years ago
0.1.15-rc.1
2 years ago
0.1.15-rc.0
2 years ago
0.1.14
2 years ago
0.1.13
2 years ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.2-rc.6
2 years ago
0.1.2-rc.5
2 years ago
0.1.2-rc.4
2 years ago
0.1.2-rc.3
2 years ago
0.1.2-rc.2
2 years ago
0.1.2-rc.1
2 years ago
0.1.2-rc.0
2 years ago
0.1.1
2 years ago
0.1.1-rc.0
2 years ago
0.1.0
2 years ago
0.0.1
2 years ago