Skip to content

Sample application for Ruby Roundtable Meetup talk on GraphQL & Relay

Notifications You must be signed in to change notification settings

Yen168/nyc-restaurant-grades

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NYC Restaurant Grades via GraphQL

This application was presented at the Ruby Roundtable Meetup in New York City in June of 2016.

--

This application allows you to query the NYC Restaurant Inspection Results data (letter ratings for restaurants) via a GraphQL interface.

For example, to query all of the Wendy's in Brooklyn and get a list of their health violations, visit http://nyc-restaurant-grades.com and enter the following on the left hand side of GraphiQL:

query {
  restaurants(name:"Wendy's", borough:BROOKLYN) {
    edges {
      node {
        name
        buildingNumber
        street
        zipcode
        borough
        cuisine
        inspections {
          edges {
            node {
              violationDescription
            }
          }
        }
      }
    }
  }
}

The data backing this application is not regularly updated

About

Sample application for Ruby Roundtable Meetup talk on GraphQL & Relay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 82.8%
  • HTML 13.5%
  • CSS 1.9%
  • JavaScript 1.8%