
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@adgstudio/graphql-generator
Advanced tools
Generate graphql object, type definition and merge sdl from graphql sdl/s
install from npm
npm install -D @adgstudio/graphql-generator
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 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 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();
Fork this repo and create pull request to dev branch
FAQs
generate graphql object, type definition from graphql sdl
We found that @adgstudio/graphql-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.