{"id":14976140,"url":"https://github.com/devanb/graphql-binding-yelp","last_synced_at":"2025-09-08T21:32:06.919Z","repository":{"id":144992297,"uuid":"113642211","full_name":"DevanB/graphql-binding-yelp","owner":"DevanB","description":"Embed Yelp's GraphQL API into your server application","archived":true,"fork":false,"pushed_at":"2019-01-20T03:37:13.000Z","size":30,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T11:11:15.707Z","etag":null,"topics":["graphql","graphql-schema","schema-stitching","yelp-api"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/DevanB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-12-09T04:41:09.000Z","updated_at":"2025-03-12T21:17:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"7dfbc610-dff0-47ca-98e5-2ddaa403d685","html_url":"https://github.com/DevanB/graphql-binding-yelp","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"3d9f73e8f6ec385d8703dc3000ba4c70701582db"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DevanB/graphql-binding-yelp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fgraphql-binding-yelp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fgraphql-binding-yelp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fgraphql-binding-yelp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fgraphql-binding-yelp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevanB","download_url":"https://codeload.github.com/DevanB/graphql-binding-yelp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fgraphql-binding-yelp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231465,"owners_count":25245625,"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-08T02:00:09.813Z","response_time":121,"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","graphql-schema","schema-stitching","yelp-api"],"created_at":"2024-09-24T13:53:22.825Z","updated_at":"2025-09-08T21:32:06.639Z","avatar_url":"https://github.com/DevanB.png","language":"TypeScript","readme":"# GraphQL Binding for Yelp\n\nEmbed Yelp's GraphQL API into your server application\n\n## Install\n\n```sh\nyarn add graphql-binding-yelp\n```\n\n## Example ([Demo @TODO](@TODO))\n\nSee [example directory](example) for full example application.\n\n```js\nconst { Yelp } = require(\"graphql-binding-yelp\");\nconst { GraphQLServer } = require(\"graphql-yoga\");\nconst { importSchema } = require(\"graphql-import\");\n\nconst favoriteBusinesses = [\n  { term: \"Wawa\", location: \"Winter Garden, FL\" },\n  { term: \"7-Eleven\", location: \"Winter Garden, FL\" }\n];\n\nconst apiKey = \"__ENTER_YOUR_YELP_API_KEY__\";\nconst yelp = new Yelp(apiKey);\n\nconst typeDefs = importSchema(\"schemas/app.graphql\");\nconst resolvers = {\n  Query: {\n    hello: (parent, { name }) =\u003e `Hello ${name || \"world!\"}`,\n    favoriteBusinesses: (parent, args, context, info) =\u003e {\n      return Promise.all(\n        favoriteBusinesses.map(args =\u003e\n          yelp.delegate(\"query\", \"search\", args, context, info)\n        )\n      );\n    }\n  }\n};\n\nconst server = new GraphQLServer({ resolvers, typeDefs });\nserver.start(() =\u003e console.log(\"Server running on http://localhost:4000\"));\n```\n\n## How to create a Yelp API Key\n\nYou’ll need to create a client, join the beta program, and grab the API key from your client settings.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevanb%2Fgraphql-binding-yelp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevanb%2Fgraphql-binding-yelp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevanb%2Fgraphql-binding-yelp/lists"}