
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
generate-graphql-app
Advanced tools
Cli tool for bootstrapping production grade GraphQL server, using:
injection-js
Please make sure you have Node.js version 8+, and type
npm install -g generate-graphql-app
Open shell in the desired folder for bootstrapping the server, and typed:
gga init <project-name>
The command will prompt available server seeds options. Choose the boilerplate project you want, and start coding!
The server boilerplate code is designed as multi file schema definitions. Our recommended way for schema design is to create a type file for certain entity. Eventually, all entities schemas are merged. To generate a matching resolver file for type file, execute the command:
gga r <type-file> <resolver file>
This will create a matching file, with all Query, Mutation and Subscription definitions.
Our server resolvers should operate as a thin layer, or controller, that links between the schema, and the server business logic. We use services for our model, to perform logic such as api fetching, db operations, etc. In order to create a new service, run the command:
gga s <service-path> [--ignoreContext]
This will create a new service file to services directory. Also, it will register the service on the server injector file, and will add its definition to the context object, thus allowing its usage by resolvers. You can exclude context file additions by passing the ignoreContext flag.
Inside the project directory, type:
gga d
This will run the server deploy script, and will move the server to production! :rocket:
Please check out the extended documentation for more information
FAQs
Cli tool for bootstrapping production grade GraphQL server
The npm package generate-graphql-app receives a total of 0 weekly downloads. As such, generate-graphql-app popularity was classified as not popular.
We found that generate-graphql-app 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.