{"id":22138185,"url":"https://github.com/wf001/learn-lacinia","last_synced_at":"2025-07-22T13:05:32.921Z","repository":{"id":265779504,"uuid":"858120925","full_name":"wf001/learn-lacinia","owner":"wf001","description":"A sample implementation of a GraphQL API powered by Clojure. ","archived":false,"fork":false,"pushed_at":"2024-10-18T09:54:53.000Z","size":3383,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T04:22:05.339Z","etag":null,"topics":["apollo","clojure","lacinia","sakila-db"],"latest_commit_sha":null,"homepage":"https://esa-pages.io/p/sharing/21463/posts/111/e113dfd2123683adf27d.html","language":"Clojure","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/wf001.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-09-16T10:50:21.000Z","updated_at":"2024-10-18T09:54:21.000Z","dependencies_parsed_at":"2024-11-30T22:51:47.360Z","dependency_job_id":null,"html_url":"https://github.com/wf001/learn-lacinia","commit_stats":null,"previous_names":["wf001/learn-lacinia"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/wf001/learn-lacinia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wf001%2Flearn-lacinia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wf001%2Flearn-lacinia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wf001%2Flearn-lacinia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wf001%2Flearn-lacinia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wf001","download_url":"https://codeload.github.com/wf001/learn-lacinia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wf001%2Flearn-lacinia/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266499067,"owners_count":23938785,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["apollo","clojure","lacinia","sakila-db"],"created_at":"2024-12-01T20:08:51.078Z","updated_at":"2025-07-22T13:05:32.898Z","avatar_url":"https://github.com/wf001.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learn Lacinia\n\nContains a sample implementation of a GraphQL API and REST API powered by Clojure. The API allows to get sample data and demonstrates basic GraphQL functionality. \n\n`FYI`: this repository is fork of [toyokumo/build-api-with-clojure](https://github.com/toyokumo/build-api-with-clojure/tree/4fe72afb467612b5a46d17d3081769069e2415cb). The foundamentals like the usage of some middlewares are explained on [their tech blog](https://tech.toyokumo.co.jp/entry/list-of-clojure-articles).\n\n\n## What’s Powering the API\n- `Lacinia`: A GraphQL server library used to provide GraphQL API by Clojure.\n- `Ring`: A Clojure web applications library.\n- `Apollo`: A GraphQL server library used to provide GraphQL API by TypeScript.\n- `MySQL`: A relational database to store customer and related data.\n- `Prisma`: A Node.js ORM used to interact with the database in a more structured way.\n- `Sakila sample database`: A standard schema that can be used for examples in books, tutorials, articles, samples, and so forth, developed by Mike Hillyer, a former member of the MySQL AB documentation team. See also [the document](https://dev.mysql.com/doc/sakila/en/). All data depends on Sakila sample database.\n\n\n\n## How it works\nYou can use the following query to retrieve a paginated list of customers for example:\n\n```graphql\nquery Customers {\n    paginatedCustomers(offset: 0, limit: 10) {\n        totalCount\n        customers {\n            customer_id\n            store_id\n            first_name\n            last_name\n            email\n            address_id\n            active\n        }\n    }\n}\n```\n\nThis will return a paginated list of customers with a total count and basic customer details such as customer_id, first_name, and last_name.\n\n## For more information\nFor more detailed information such as the way of setting up or running query, please refer to [the full document](https://esa-pages.io/p/sharing/21463/posts/111/e113dfd2123683adf27d.html).\n\n\n\n## License\nThis project is licensed under the MIT License. See [the LICENSE file](https://github.com/wf001/learn-lacinia/blob/main/LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwf001%2Flearn-lacinia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwf001%2Flearn-lacinia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwf001%2Flearn-lacinia/lists"}