All Projects → DevanB → graphql-binding-yelp

DevanB / graphql-binding-yelp

Licence: other
Embed Yelp's GraphQL API into your server application

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to graphql-binding-yelp

Hotchocolate
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
Stars: ✭ 3,009 (+27254.55%)
Mutual labels:  graphql-schema, schema-stitching
Graphql Tools
🔧 Build, mock, and stitch a GraphQL schema using the schema language
Stars: ✭ 4,556 (+41318.18%)
Mutual labels:  graphql-schema, schema-stitching
envelop
Envelop is a lightweight library allowing developers to easily develop, share, collaborate and extend their GraphQL execution layer. Envelop is the missing GraphQL plugin system.
Stars: ✭ 630 (+5627.27%)
Mutual labels:  graphql-schema
Chi Food
Food Delivery App made by Flutter and Bloc
Stars: ✭ 103 (+836.36%)
Mutual labels:  yelp-api
kobby
Kobby is a codegen plugin of Kotlin DSL Client by GraphQL schema. The generated DSL supports execution of complex GraphQL queries, mutation and subscriptions in Kotlin with syntax similar to native GraphQL syntax.
Stars: ✭ 52 (+372.73%)
Mutual labels:  graphql-schema
graphql-remote loader
Performant remote GraphQL queries from within the resolvers of a Ruby GraphQL API.
Stars: ✭ 52 (+372.73%)
Mutual labels:  schema-stitching
grpc-graphql-schema
Convert gRPC proto definition into GraphQL Schema
Stars: ✭ 32 (+190.91%)
Mutual labels:  graphql-schema
graphql-api
GraphQL-Api is an opinionated Graphql framework for Rails that supports auto generating queries based on Active Record models and plain Ruby objects
Stars: ✭ 58 (+427.27%)
Mutual labels:  graphql-schema
react-apollo-client-testing-example
A React with Apollo Client application with a mocked GraphQL server and tested Query and Mutation components.
Stars: ✭ 17 (+54.55%)
Mutual labels:  graphql-schema
schemaglue
Naturally breaks down your monolithic graphql schema into bits and pieces and then glue them back together.
Stars: ✭ 117 (+963.64%)
Mutual labels:  graphql-schema
graphql-spotify
GraphQL Schema And Resolvers For Spotify Web API
Stars: ✭ 55 (+400%)
Mutual labels:  graphql-schema
girin
Define GraphQL types linked to classes.
Stars: ✭ 26 (+136.36%)
Mutual labels:  graphql-schema
graphql-metadata
Annotate your graphql schema with lightweight directives
Stars: ✭ 28 (+154.55%)
Mutual labels:  graphql-schema
Geolocator-2
Learn how to find and work with locations in Django, the Yelp API, and Google Maps api.
Stars: ✭ 24 (+118.18%)
Mutual labels:  yelp-api
graphql-express-nodejs
A Simple GraphQL Server implementation using Express and Node. See post here: https://t.co/Cm6GitZaBL
Stars: ✭ 24 (+118.18%)
Mutual labels:  graphql-schema
graphql-directive-sql
Unify your SQL schema and your GraphQL Schema. Use GraphQL SDL as the lingua franca to define your data requirements.
Stars: ✭ 28 (+154.55%)
Mutual labels:  graphql-schema
graphql-cli-load
A graphql-cli data import plugin to call mutations with data from JSON/CSV files
Stars: ✭ 63 (+472.73%)
Mutual labels:  graphql-schema
ubereats-api
🍕 ubereats api for the ios: Express.js and Yelp api
Stars: ✭ 20 (+81.82%)
Mutual labels:  yelp-api
graphql-compose-elasticsearch
Graphql App using Node with typescript, KOA framework and Elasticsearch
Stars: ✭ 40 (+263.64%)
Mutual labels:  graphql-schema
fauna-gql-upload
A tool for managing your FaunaDB database using files. Create resources such as functions by simply creating a new file.
Stars: ✭ 45 (+309.09%)
Mutual labels:  graphql-schema

GraphQL Binding for Yelp

Embed Yelp's GraphQL API into your server application

Install

yarn add graphql-binding-yelp

Example (Demo @TODO)

See example directory for full example application.

const { Yelp } = require("graphql-binding-yelp");
const { GraphQLServer } = require("graphql-yoga");
const { importSchema } = require("graphql-import");

const favoriteBusinesses = [
  { term: "Wawa", location: "Winter Garden, FL" },
  { term: "7-Eleven", location: "Winter Garden, FL" }
];

const apiKey = "__ENTER_YOUR_YELP_API_KEY__";
const yelp = new Yelp(apiKey);

const typeDefs = importSchema("schemas/app.graphql");
const resolvers = {
  Query: {
    hello: (parent, { name }) => `Hello ${name || "world!"}`,
    favoriteBusinesses: (parent, args, context, info) => {
      return Promise.all(
        favoriteBusinesses.map(args =>
          yelp.delegate("query", "search", args, context, info)
        )
      );
    }
  }
};

const server = new GraphQLServer({ resolvers, typeDefs });
server.start(() => console.log("Server running on http://localhost:4000"));

How to create a Yelp API Key

You’ll need to create a client, join the beta program, and grab the API key from your client settings.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].