{"id":23428676,"url":"https://github.com/marknjunge/graphql-yoga-sample","last_synced_at":"2025-04-09T13:19:49.121Z","repository":{"id":110814861,"uuid":"132182791","full_name":"MarkNjunge/graphql-yoga-sample","owner":"MarkNjunge","description":"A sample GraphQL Server built using graphql-yoga.","archived":false,"fork":false,"pushed_at":"2018-07-06T17:22:02.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T07:29:01.410Z","etag":null,"topics":["graphql","graphql-server","graphql-yoga"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/MarkNjunge.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":"2018-05-04T19:51:01.000Z","updated_at":"2018-07-06T17:22:03.000Z","dependencies_parsed_at":"2023-04-04T08:30:28.235Z","dependency_job_id":null,"html_url":"https://github.com/MarkNjunge/graphql-yoga-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkNjunge%2Fgraphql-yoga-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkNjunge%2Fgraphql-yoga-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkNjunge%2Fgraphql-yoga-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkNjunge%2Fgraphql-yoga-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarkNjunge","download_url":"https://codeload.github.com/MarkNjunge/graphql-yoga-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045267,"owners_count":21038557,"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":["graphql","graphql-server","graphql-yoga"],"created_at":"2024-12-23T07:14:27.286Z","updated_at":"2025-04-09T13:19:49.109Z","avatar_url":"https://github.com/MarkNjunge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-yoga sample\n\nA sample GraphQL Server built using [graphql-yoga](https://github.com/graphcool/graphql-yoga).  \nThe sample shows how to implement queries, mutations, subscrptions as well as accessing headers.\n\n[**Live version**](https://secret-castle-94933.herokuapp.com/playground)\n\n## Installation\n\n```\ngit clone https://github.com/MarkNjunge/graphql-yoga-sample.git\n\nyarn\n\nyarn start\n```\n\nGraphQL Playground will be avaiable at [`localhost:3000/playground`](http://localhost:3000/playground).  \nThe GraphQL endpoint will be `localhost:3000/graphql`\n\n## Sample queries\n\n### Query\n\n``` graphql\nquery {\n  hello(name:\"Mark\")\n}\n\n# Returns data from a header\nquery {\n  header(headerName:\"Authorization\")\n}\n```\n\n### Mutation\n\n``` graphql\nmutation {\n  changeCount(value:10)\n}\n```\n\n### Subscrption\n\n``` graphql\nsubscription {\n  helloSub{\n    total\n    greeting\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarknjunge%2Fgraphql-yoga-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarknjunge%2Fgraphql-yoga-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarknjunge%2Fgraphql-yoga-sample/lists"}