{"id":28714375,"url":"https://github.com/graphql-compose/graphql-compose-bullmq","last_synced_at":"2025-09-05T11:35:44.100Z","repository":{"id":38175127,"uuid":"252196050","full_name":"graphql-compose/graphql-compose-bullmq","owner":"graphql-compose","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-27T08:00:17.000Z","size":967,"stargazers_count":11,"open_issues_count":27,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-01T08:13:43.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/graphql-compose.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-04-01T14:19:12.000Z","updated_at":"2025-01-07T02:59:33.000Z","dependencies_parsed_at":"2023-02-06T12:01:48.220Z","dependency_job_id":"f40c661e-95a3-48b6-93a6-a42c15cdb9b1","html_url":"https://github.com/graphql-compose/graphql-compose-bullmq","commit_stats":{"total_commits":103,"total_committers":6,"mean_commits":"17.166666666666668","dds":0.6893203883495146,"last_synced_commit":"de3224b1495164f9d85ff90aabe0a48b638b4103"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-compose%2Fgraphql-compose-bullmq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-compose%2Fgraphql-compose-bullmq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-compose%2Fgraphql-compose-bullmq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-compose%2Fgraphql-compose-bullmq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphql-compose","download_url":"https://codeload.github.com/graphql-compose/graphql-compose-bullmq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-compose%2Fgraphql-compose-bullmq/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258164700,"owners_count":22659152,"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":[],"created_at":"2025-06-15T01:07:02.436Z","updated_at":"2025-06-15T01:07:03.185Z","avatar_url":"https://github.com/graphql-compose.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-compose-bullmq\n\n[![npm](https://img.shields.io/npm/v/graphql-compose-bullmq.svg)](https://www.npmjs.com/package/graphql-compose-bullmq)\n[![trends](https://img.shields.io/npm/dt/graphql-compose-bullmq.svg)](http://www.npmtrends.com/graphql-compose-bullmq)\n[![travis build](https://img.shields.io/travis/graphql-compose/graphql-compose-bullmq.svg)](https://travis-ci.org/graphql-compose/graphql-compose-bullmq)\n[![Fully automated version management and package publishing](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nThis is a plugin for [graphql-compose](https://github.com/graphql-compose/graphql-compose), which generates GraphQLTypes for [bullmq](https://github.com/taskforcesh/bullmq).\n\n## Installation\n\n```bash\nnpm install graphql graphql-compose bullmq graphql-compose-bullmq --save\n```\n\nModules `graphql`, `graphql-compose`, `bullmq` are in `peerDependencies`, so should be installed explicitly in your app. They have global objects and should not have ability to be installed as submodule.\n\n## Example\n\n```js\nimport { composeBull } from 'graphql-compose-bullmq';\nimport { schemaComposer } from 'graphql-compose';\n\nconst { queryFields, mutationFields } = composeBull({\n  schemaComposer,\n  typePrefix: 'Prefix',\n  jobDataTC: `type MyJobData { fieldA: String! fieldB: String}`,\n  queue: {\n    name: 'fetch_metrics',\n    prefix: 'bull.demo',\n  },\n  redis: 'redis://127.0.0.1:6379',\n});\n\nschemaComposer.Query.addFields({\n  ...queryFields,\n  // Will provide the following fields:\n  //   queueKeys\n  //   queues\n  //   queue\n  //   job\n});\n\nschemaComposer.Mutation.addFields({\n  ...mutationFields,\n  // Will provide the following fields:\n  //   queueClean\n  //   queueDrain\n  //   queuePause\n  //   queueResume\n  //   queueRemoveRepeatable\n  //   jobAdd\n  //   jobAddBulk\n  //   jobAddRepeatableCron\n  //   jobAddRepeatableEvery\n  //   jobDiscard\n  //   jobPromote\n  //   jobRemove\n  //   jobRetry\n  //   jobUpdate\n  //   jobLogAdd\n});\n\nconst schema = schemaComposer.buildSchema();\n```\n\n## Schema\n\n`composeBull` will generate particles for your further schema. It contains more than 40 types wich helps to you work with Bull Queues. You may see generated files in [schema.graphql](./example/schema.graphql) file. It can be visialized with \u003chttps://apis.guru/graphql-voyager/\u003e in the following manner:\n\n### Queries\n\n\u003cimg width=\"1323\" alt=\"Screen Shot 2020-04-14 at 21 22 38\" src=\"https://user-images.githubusercontent.com/1946920/79242603-5ab18900-7e96-11ea-8aad-7aff95e285ba.png\"\u003e\n\n### Mutations\n\n\u003cimg width=\"1327\" alt=\"Screen Shot 2020-04-14 at 21 24 05\" src=\"https://user-images.githubusercontent.com/1946920/79242633-61d89700-7e96-11ea-9efc-3afadc3e082c.png\"\u003e\n\n## License\n\n[MIT](https://github.com/graphql-compose/graphql-compose-bullmq/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-compose%2Fgraphql-compose-bullmq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphql-compose%2Fgraphql-compose-bullmq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-compose%2Fgraphql-compose-bullmq/lists"}