{"id":25869502,"url":"https://github.com/active-group/active-graphql","last_synced_at":"2025-07-14T21:41:33.810Z","repository":{"id":57713028,"uuid":"91241462","full_name":"active-group/active-graphql","owner":"active-group","description":"ClojureScript library for programmatically constructing GraphQL query strings.","archived":false,"fork":false,"pushed_at":"2021-02-12T16:10:35.000Z","size":907,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-01-30T05:47:28.013Z","etag":null,"topics":["clojurescript","graphql"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/active-group.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}},"created_at":"2017-05-14T12:20:21.000Z","updated_at":"2024-06-13T09:29:52.000Z","dependencies_parsed_at":"2022-09-05T22:50:22.713Z","dependency_job_id":null,"html_url":"https://github.com/active-group/active-graphql","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/active-group%2Factive-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/active-group%2Factive-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/active-group%2Factive-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/active-group%2Factive-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/active-group","download_url":"https://codeload.github.com/active-group/active-graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241222065,"owners_count":19929465,"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":["clojurescript","graphql"],"created_at":"2025-03-02T05:17:39.302Z","updated_at":"2025-03-02T05:17:39.864Z","avatar_url":"https://github.com/active-group.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# active-graphql\n\nA ClojureScript library for programmatically building GraphQL query strings. Includes a \"micro\" DSL for constructing more readable queries.\n\n## Running the tests\n\nWe run tests via [lein-doo](https://github.com/bensu/doo) and [phantomjs](https://phantomjs.org).\n\nTo execute the tests, run\n\n```\nlein doo phantom test once\n```\n\n## Usage\n\nSome examples for constructing queries using `active-graphql`:\n\n```Clojure\n(ns active-graphql.examples\n  (:require [active-graphql.builder :as b])\n\n(b/query (b/field \"user\" \"firstName\" \"lastName\"))\n;; =\u003e\n;; query {\n;;   user {\n;;     firstName\n;;     lastName\n;;   }\n;; }\n\n;; Keywords can be used instead of strings\n(b/query (b/field :user :firstName :lastName))\n;; =\u003e\n;; query {\n;;   user {\n;;     firstName\n;;     lastName\n;;   }\n;; }\n\n;; Aliasing\n(b/query (b/field :user\n                  [:name :firstName]))\n;; =\u003e\n;; query {\n;;   user {\n;;     name: firstName\n;;   }\n;; }\n\n(b/mutation (b/field \"user\" \"firstName\" \"lastName\"))\n;; =\u003e\n;; mutation {\n;;   user {\n;;     firstName\n;;     lastName\n;;   }\n;; }\n\n;; Utilizing arguments to a query:\n(b/query (b/field \"user\" {\"id\" 42} \"firstName\"))\n;; =\u003e\n;; query {\n;;   user(id: 42) {\n;;     firstName\n;;   }\n;; }\n\n;; Nesting\n(b/query (b/field \"user\" {\"id\" 42} \"firstName\")\n         (b/field \"hardware\" \"type\" \"model\"))\n;; =\u003e\n;; query {\n;;   user(id: 42) {\n;;     firstName\n;;   }\n;;   hardware {\n;;     type\n;;     model\n;;   }\n;; }\n\n;; Deeper nesting\n(b/query (b/field \"user\" {\"id\" 42}\n                  \"firstName\"\n                  \"other\")\n         (b/field \"person\"\n                  {\"firstName\" \"Marco\"}\n                  (b/field \"address\"\n                           \"street\"\n                           \"zipCode\")))\n;; query {\n;;   user(id: 42) {\n;;     firstName\n;;     other\n;;   }\n;;   person(firstName: \"Marco\") {\n;;     address {\n;;       street\n;;       zipCode\n;;     }\n;;   }\n;; }\n\n```\n\n\n## License\n\nCopyright © 2017 - 2020 Active Group GmbH\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factive-group%2Factive-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factive-group%2Factive-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factive-group%2Factive-graphql/lists"}