{"id":13877843,"url":"https://github.com/remorses/mongoke","last_synced_at":"2025-09-30T02:30:25.337Z","repository":{"id":57442958,"uuid":"204278194","full_name":"remorses/mongoke","owner":"remorses","description":null,"archived":true,"fork":false,"pushed_at":"2020-07-07T12:55:48.000Z","size":6740,"stargazers_count":215,"open_issues_count":6,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-05T06:33:20.353Z","etag":null,"topics":["cloud","containers","database","docker","docker-compose","existing-databases","generated","graphql","jwt","kubernetes","microservice","mongodb","mongodb-database","schema","serverless"],"latest_commit_sha":null,"homepage":"https://mongoke.now.sh/docs/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remorses.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":"mongoke","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-08-25T10:19:46.000Z","updated_at":"2025-07-17T16:51:03.000Z","dependencies_parsed_at":"2022-09-04T23:00:42.931Z","dependency_job_id":null,"html_url":"https://github.com/remorses/mongoke","commit_stats":null,"previous_names":[],"tags_count":103,"template":false,"template_full_name":null,"purl":"pkg:github/remorses/mongoke","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remorses%2Fmongoke","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remorses%2Fmongoke/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remorses%2Fmongoke/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remorses%2Fmongoke/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remorses","download_url":"https://codeload.github.com/remorses/mongoke/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remorses%2Fmongoke/sbom","scorecard":{"id":770425,"data":{"date":"2025-08-11","repo":{"name":"github.com/remorses/mongoke","commit":"ab0cbf0ea488d23bb08dcaacb873e884cd477880"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: tests/templates/__pycache__/test_support.cpython-37-pytest-5.0.1.pyc:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 2.0.33 not signed: https://api.github.com/repos/remorses/mongoke/releases/28311556","Warn: release artifact 2.0.32 not signed: https://api.github.com/repos/remorses/mongoke/releases/28001496","Warn: release artifact 2.0.31 not signed: https://api.github.com/repos/remorses/mongoke/releases/28000650","Warn: release artifact 2.0.30 not signed: https://api.github.com/repos/remorses/mongoke/releases/28000415","Warn: release artifact 2.0.28 not signed: https://api.github.com/repos/remorses/mongoke/releases/27518628","Warn: release artifact 2.0.33 does not have provenance: https://api.github.com/repos/remorses/mongoke/releases/28311556","Warn: release artifact 2.0.32 does not have provenance: https://api.github.com/repos/remorses/mongoke/releases/28001496","Warn: release artifact 2.0.31 does not have provenance: https://api.github.com/repos/remorses/mongoke/releases/28000650","Warn: release artifact 2.0.30 does not have provenance: https://api.github.com/repos/remorses/mongoke/releases/28000415","Warn: release artifact 2.0.28 does not have provenance: https://api.github.com/repos/remorses/mongoke/releases/27518628"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/remorses/mongoke/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/remorses/mongoke/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/remorses/mongoke/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/remorses/mongoke/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/remorses/mongoke/ci.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating tiangolo/uvicorn-gunicorn:python3.7-alpine3.8 to tiangolo/uvicorn-gunicorn:python3.7-alpine3.8@sha256:d9d4387c9d4f42e35bd06cfd6a1874d219f5f087345e21642f453305af116c95","Warn: containerImage not pinned by hash: examples/federation/another_service/Dockerfile:1: pin your Docker image by updating node:10-alpine to node:10-alpine@sha256:dc98dac24efd4254f75976c40bce46944697a110d06ce7fa47e7268470cf2e28","Warn: pipCommand not pinned by hash: Dockerfile:9","Warn: pipCommand not pinned by hash: Dockerfile:10","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":0,"reason":"33 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-w42g-7vfc-xf37","Warn: Project is vulnerable to: GHSA-qm7x-rc44-rrqw","Warn: Project is vulnerable to: GHSA-2p3c-p3qw-69r4","Warn: Project is vulnerable to: GHSA-j5g3-5c8r-7qfx","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-wm7h-9275-46v2","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-cwx2-736x-mf6w","Warn: Project is vulnerable to: GHSA-v39p-96qg-c8rf","Warn: Project is vulnerable to: GHSA-8v63-cqqc-6r2c","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: PYSEC-2017-24 / GHSA-r9jw-mwhq-wp62","Warn: Project is vulnerable to: GHSA-m87m-mmvp-v9qm","Warn: Project is vulnerable to: PYSEC-2013-30 / GHSA-x33v-f3gp-gw2c","Warn: Project is vulnerable to: PYSEC-2020-150 / GHSA-33c7-2mpw-hg34","Warn: Project is vulnerable to: PYSEC-2020-151 / GHSA-f97h-2pfx-f59f","Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: PYSEC-2018-49 / GHSA-rprw-h62v-c2w7","Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T02:05:54.372Z","repository_id":57442958,"created_at":"2025-08-23T02:05:54.372Z","updated_at":"2025-08-23T02:05:54.372Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277618557,"owners_count":25848553,"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","status":"online","status_checked_at":"2025-09-30T02:00:09.208Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cloud","containers","database","docker","docker-compose","existing-databases","generated","graphql","jwt","kubernetes","microservice","mongodb","mongodb-database","schema","serverless"],"created_at":"2024-08-06T08:01:29.441Z","updated_at":"2025-09-30T02:30:24.986Z","avatar_url":"https://github.com/remorses.png","language":"Python","funding_links":["https://opencollective.com/mongoke"],"categories":["Python"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"300\" src=\"https://github.com/remorses/mongoke/blob/master/.github/logo.jpg?raw=true\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003emongoke\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eInstantly serve your MongoDb database via graphql\u003c/h3\u003e\n\n[**Docs**](https://mongoke.now.sh/docs/) • [**Examples**](https://github.com/remorses/mongoke/tree/master/examples)\n\n## Features\n\n-   **Powerful Queries**: Pagination, filtering, relation, relay-style connections built-in and generated in a bunch of seconds\n-   **Works with existing databases**: Point it to an existing MongoDb database to instantly get a ready-to-use GraphQL API\n-   **Authorization via Jwt**: Every collection can be protected based on jwt payload and document fields\n-   **Horizontally Scalable**: The service is completely stateless and can be replicated on demand\n-   **Apollo Federation**: The service can be easily glued with other graphql servers to handle writes and more complicated logic.\n-   **Resilient Idempotent Configuration**: One YAML Configuration as the only source of truth, relations, authorization and types in one file\n\n## Quickstart:\n\n## Using Docker compose\n\nThe fastest way to try Mongoke is via docker-compose.\n\n### 1. Write the configuration to describe the database schema and relations\n\nThe ObjectId scalar is already defined by default, it is converted to string when sent as json\n\n```yml\n# ./mongoke.yml\nschema: |\n    type User {\n        _id: ObjectId\n        username: String\n        email: String\n    }\n    type BlogPost {\n        _id: ObjectId\n        author_id: ObjectId\n        title: String\n        content: String\n    }\n\ntypes:\n    User:\n        collection: users\n    BlogPost:\n        collection: posts\n\nrelations:\n    - field: posts\n      from: User\n      to: BlogPost\n      relation_type: to_many\n      where:\n          author_id: ${{ parent['_id'] }}\n```\n\n### 2. Run the `mongoke` image with the above configuration\n\nTo start the container mount copy paste the following content in a `docker-compose.yml` file, then execute `docker-compose up`.\n\n```yml\n# docker-compose.yml\nversion: '3'\n\nservices:\n    mongoke:\n        ports:\n            - 4000:80\n        image: mongoke/mongoke\n        environment:\n            DB_URL: mongodb://mongo/db\n        volumes:\n            - ./mongoke.yml:/conf.yml\n    mongo:\n        image: mongo\n```\n\n### 3. Query the generated service via graphql or go to [http://localhost:4000/graphiql](http://localhost:4000/graphiql) to open graphiql\n\n```graphql\n{\n    User(where: { username: { eq: \"Mike\" } }) {\n        _id\n        username\n        email\n        posts {\n            nodes {\n                title\n            }\n        }\n    }\n\n    BlogPostNodes(first: 10, after: \"Post 1\", cursorField: title) {\n        nodes {\n            title\n            content\n        }\n        pageInfo {\n            endCursor\n            hasNextPage\n        }\n    }\n}\n```\n\n---\n\n## Tutorials\n\nCheck out the /examples directory in this repo\n\nPlease help the project making new tutorials and submit a issue to list it here!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremorses%2Fmongoke","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremorses%2Fmongoke","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremorses%2Fmongoke/lists"}