{"id":9243543,"url":"https://github.com/rowtype-yoga/purescript-graphql-fundeps","last_synced_at":"2026-01-18T17:33:54.812Z","repository":{"id":41971268,"uuid":"368816004","full_name":"rowtype-yoga/purescript-graphql-fundeps","owner":"rowtype-yoga","description":"Type-safe GraphQL queries using functional dependencies.","archived":false,"fork":false,"pushed_at":"2023-06-30T08:07:04.000Z","size":125,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-12-17T10:38:11.294Z","etag":null,"topics":["graphql","purescript"],"latest_commit_sha":null,"homepage":"","language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rowtype-yoga.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":"2021-05-19T09:35:21.000Z","updated_at":"2023-10-03T15:21:29.000Z","dependencies_parsed_at":"2024-12-17T10:41:08.644Z","dependency_job_id":null,"html_url":"https://github.com/rowtype-yoga/purescript-graphql-fundeps","commit_stats":null,"previous_names":["rowtype-yoga/purescript-graphql-fundeps"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rowtype-yoga/purescript-graphql-fundeps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rowtype-yoga%2Fpurescript-graphql-fundeps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rowtype-yoga%2Fpurescript-graphql-fundeps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rowtype-yoga%2Fpurescript-graphql-fundeps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rowtype-yoga%2Fpurescript-graphql-fundeps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rowtype-yoga","download_url":"https://codeload.github.com/rowtype-yoga/purescript-graphql-fundeps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rowtype-yoga%2Fpurescript-graphql-fundeps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270820680,"owners_count":24651515,"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-08-17T02:00:09.016Z","response_time":129,"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":["graphql","purescript"],"created_at":"2024-05-08T00:09:56.043Z","updated_at":"2026-01-18T17:33:54.806Z","avatar_url":"https://github.com/rowtype-yoga.png","language":"PureScript","funding_links":[],"categories":["GraphQL"],"sub_categories":["Http routing"],"readme":"# purescript-graphql-fundeps\n\nType-safe graphql queries using functional dependencies.\n\nUse the `GraphQLReqRes` class to define expected input and output.\nThen, create a `client` and use it to interact with your API.\n\n```purescript\nendpoint = \"https://api.react-finland.fi/graphql\" :: String\n\nforeign import data ReactFinlandConferences :: GraphQL\n\ninstance graphqlReactFinlandConferences ::\n  GraphQLReqRes ReactFinlandConferences \"\"\"query {\n  conferences {\n    name\n    id\n  }\n}\n\"\"\" () ( conferences :: Array { name :: String, id :: String } )\n\nforeign import data ReactFinlandConference :: GraphQL\n\ninstance graphqlReactFinlandConference ::\n  GraphQLReqRes ReactFinlandConference \"\"\"query($id:ID!) {\n  conference(id:$id) {\n    year\n    websiteUrl\n    speakers {\n      firstName\n      lastName\n    }\n  }\n}\n\"\"\" ( id :: String ) ( conference ::\n        { year :: String\n        , websiteUrl :: String\n        , speakers ::\n            Array\n              { firstName :: String\n              , lastName :: String\n              }\n        }\n    )\n\nclient :: GraphQLClientAff\nclient = graphQL \"https://api.react-finland.fi/graphql\" [] driver\n\nmain ∷ Effect Unit\nmain =\n  launchAff_  do\n    { conferences } \u003c- client (Gql :: Gql ReactFinlandConferences) {}\n    for_ conferences \\{ id } -\u003e do\n      { conference: { websiteUrl, speakers } } \u003c- client (Gql :: Gql ReactFinlandConference) { id }\n      Log.info websiteUrl\n      Log.info $ show speakers\n```\n\nYou can check out the [test](./test/Main.purs) for a full example.\n\n## Development\n\nYou can either use the nix shell, or the npm package.\n\n### Nix shell\n\nHaving set up [flakes](https://nixos.wiki/wiki/Flakes), either using [direnv](https://direnv.net/) (`direnv allow`) or `nix develop`\n\nBuliding:\n\n```\nspago build\n```\n\nTesting:\n\n```\nspago -x test.dhall test\n```\n\n\n### Npm\n\nJust run `npm i` and then:\n\nBuilding:\n\n```\nspago build\n```\n\nTesting:\n\n```\nnpm run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frowtype-yoga%2Fpurescript-graphql-fundeps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frowtype-yoga%2Fpurescript-graphql-fundeps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frowtype-yoga%2Fpurescript-graphql-fundeps/lists"}