Skip to content

AdiBev/yelp-graphql-api-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yelp-graphql-api-server

An express proxy server to access Yelp graphql api

Project contents

  1. Graphql queries are in src/query.js file
  2. Routes are in src/routes.js file
  3. Graphql client config file src/graphql-client.js

Headers included in graphql client config to satisfy Yelp api requirments.

const graphQLCLient = new GraphQLClient(endpoint, {
  headers: {
    "Access-Control-Allow-Origin": "*",
    Authorization: `Bearer ${process.env.YELP_API_KEY}`,
  },
})

This project uses graphql-request package to perform graphql queries/mutations. Currently there are only added queries in the project, but users can add mutations as well.

If you would like to add new features/configs to this repo please add a PR to graphql-api-develop branch

About

An express proxy server to access yelp graphql api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published