{"id":25615212,"url":"https://github.com/wednesday-solutions/negt-cli","last_synced_at":"2025-04-13T21:13:26.742Z","repository":{"id":64206227,"uuid":"569592733","full_name":"wednesday-solutions/negt-cli","owner":"wednesday-solutions","description":"GraphQL auto generation cli app.","archived":false,"fork":false,"pushed_at":"2023-04-10T12:20:59.000Z","size":47114,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-13T21:13:03.254Z","etag":null,"topics":["automation","node-express-grapqhl","scaffolding"],"latest_commit_sha":null,"homepage":"https://wednesday.is/building-products","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wednesday-solutions.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-23T07:16:53.000Z","updated_at":"2024-03-09T14:26:00.000Z","dependencies_parsed_at":"2024-06-20T00:13:25.133Z","dependency_job_id":"8a074362-e6ef-45e0-a788-b63548665189","html_url":"https://github.com/wednesday-solutions/negt-cli","commit_stats":null,"previous_names":["ijasmohamad/negt","wednesday-solutions/negt"],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wednesday-solutions%2Fnegt-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wednesday-solutions%2Fnegt-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wednesday-solutions%2Fnegt-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wednesday-solutions%2Fnegt-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wednesday-solutions","download_url":"https://codeload.github.com/wednesday-solutions/negt-cli/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248782260,"owners_count":21160717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","node-express-grapqhl","scaffolding"],"created_at":"2025-02-22T03:18:55.693Z","updated_at":"2025-04-13T21:13:26.717Z","avatar_url":"https://github.com/wednesday-solutions.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"left\" src=\"https://github.com/wednesday-solutions/negt/blob/develop/docs/negt-cli-preview.png\" width=\"500\" height=\"450\" /\u003e\n\n\u003cdiv\u003e\n  \u003ca href=\"https://www.wednesday.is?utm_source=gthb\u0026utm_medium=repo\u0026utm_campaign=serverless\" align=\"left\" style=\"margin-left: 0;\"\u003e\n    \u003cimg src=\"https://uploads-ssl.webflow.com/5ee36ce1473112550f1e1739/5f5879492fafecdb3e5b0e75_wednesday_logo.svg\"\u003e\n  \u003c/a\u003e\n  \u003cp\u003e\n    \u003ch1 align=\"left\"\u003eNEGT CLI\u003c/h1\u003e\n  \u003c/p\u003e\n\n  \u003cp\u003e\nA CLI tool that works with the Node Express GraphQL Template and allows you to create queries, mutations and its scaffold tests for graphql models and stitches them all together preventing wastage of time in setup and boilerplate code.\n  \u003c/p\u003e\n\n---\n\n  \u003cp\u003e\n    \u003ch4\u003e\n      Expert teams of digital product strategists, developers, and designers.\n    \u003c/h4\u003e\n  \u003c/p\u003e\n\n  \u003cdiv\u003e\n    \u003ca href=\"https://www.wednesday.is/contact-us?utm_source=gthb\u0026utm_medium=repo\u0026utm_campaign=serverless\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://uploads-ssl.webflow.com/5ee36ce1473112550f1e1739/5f6ae88b9005f9ed382fb2a5_button_get_in_touch.svg\" width=\"121\" height=\"34\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/wednesday-solutions/\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://uploads-ssl.webflow.com/5ee36ce1473112550f1e1739/5f6ae88bb1958c3253756c39_button_follow_on_github.svg\" width=\"168\" height=\"34\"\u003e\n    \u003c/a\u003e\n  \u003c/div\u003e\n\n##\n\n  \u003cp\u003e\n    \u003ch3 align=\"left\"\u003eBuilt using \u003ca href=\"https://github.com/wednesday-solutions/node-express-graphql-template/blob/develop/README.md\" target=\"_blank\"\u003eNode Express GraphQL Template\u003c/a\u003e\n    \u003c/h3\u003e\n  \u003c/p\u003e\n\n\u003c/div\u003e\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/wednesday-solutions/negt)](https://goreportcard.com/report/github.com/wednesday-solutions/negt) ![example workflow](https://github.com/wednesday-solutions/negt-cli/actions/workflows/ci.yml/badge.svg) ![example workflow](https://github.com/wednesday-solutions/negt-cli/actions/workflows/product-release.yml/badge.svg) [![GoDoc](https://godoc.org/github.com/wednesday-solutions/negt?status.svg)](https://godoc.org/github.com/wednesday-solutions/negt)\n\n\n## Installation\n\n    go install github.com/wednesday-solutions/negt@latest\n    \n## Examples of generated files\n\n\u003cul\u003e\n  \u003cli\u003e\u003ca href=\"https://github.com/wednesday-solutions/negt/blob/develop/generated-files/models\"\u003emodels\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://github.com/wednesday-solutions/negt/blob/develop/generated-files/models/tests\"\u003etests\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://github.com/wednesday-solutions/negt/blob/develop/generated-files/mockData\"\u003emock data\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n## Generating GraphQL models and tests\n\n\u003cimg align=\"left\" src=\"https://github.com/wednesday-solutions/negt/blob/develop/docs/negt-cli-model-sample.png\"/\u003e\n\n## Documentation\n\n\u003ch3\u003eHelp\u003c/h3\u003e\n\n\u003cp\u003eTo get a list of commands and usage hints use\u003c/p\u003e\n\n    negt --help\n    \n    negt gqlgen --help\n    \n## Creating a new NEGT Application\n\n     negt gqlgen init\n     \n\u003cimg align=\"left\" src=\"https://github.com/wednesday-solutions/negt/blob/develop/docs/negt-cli-init-sample.png\"/\u003e\n\nHint: If you are using Node-Express-GraphQL-Template, it will create directories `server/gql/models` otherwise `gql/models`.\n\n## Creating GraphQL models\n\n    negt gqlgen model\n\nhttps://user-images.githubusercontent.com/114065489/207503280-004171e6-2efe-4f52-9b6f-842e202cf171.mp4\n\n## Generated files contain the following\n\n    Files :-\n        1. index.js                 - It contains all relations of the gql model.\n        2. models.js                - It contains fields and GraphQLObjectType of the model.\n        3. query.js                 - It contains query of the model.\n        4. list.js                  - It contains connection and query list of the model.\n        5. mutation.js              - It contains the mutation fields and mutation object.\n        6. customCreateMutation.js  - If you need custom resolvers for the GraphQL model, you can say yes for the question in the CLI.\n           If you said yes, then it will create 3 custom resolver files. This file contains the custom create mutation object.\n        7. customUpdateMutation.js  - It contains the custom update mutation object.\n        8. customDeleteMutation.js  - It contains the custom delete mutation object.\n\nIt will create its test files also in `gql/models/\u003cmodelName\u003e/tests` directory.\n\n    Test files :-\n        1. index.test.js                - It contains the test cases of index.js file. It checks the importing is working properly.\n        2. models.test.js               - It contains the test case for type of the GraphQL model.\n        3. query.test.js                - It contains the test case of GraphQL query.\n        4. list.test.js                 - It contains the test case of GraphQL query list.\n        5. mutation.test.js             - It contains the test cases of GraphQL mutations like creating, updating and deleting.\n        6. pagination.test.js           - It contains the test case for checking the pagination of GraphQL queries is working properly.\n           Most of the case, we don't need to change this file anymore. So it will create this test case in a different file.\n        7. customCreateMutation.test.js - It contains the test case of custom create mutation resolver.\n        8. customUpdateMutation.test.js - It contains the test case of custom update mutation resolver.\n        9. customDeleteMutation.test.js - It contains the test case of custom delete mutation resolver.\n\nAlso, it will create mockData file for the model in `utils/testUtils` directory.\n\n## Projects using it\n\n\u003ch3\u003e\u003cul\u003e\u003cli\u003e\u003ca href=\"https://github.com/wednesday-solutions/node-express-graphql-template\"\u003eNode Express GraphQL Template\u003c/a\u003e\u003c/li\u003e\u003c/ul\u003e\u003c/h3\u003e\n\n## Licence\n\n\u003cp\u003eThis project is released under the \u003ca href=\"https://github.com/wednesday-solutions/negt/blob/develop/LICENCE\"\u003eMIT License\u003c/a\u003e.\u003c/p\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwednesday-solutions%2Fnegt-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwednesday-solutions%2Fnegt-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwednesday-solutions%2Fnegt-cli/lists"}