Skip to content

Apollo Server running on express and consuming the Ebay deals feed

Notifications You must be signed in to change notification settings

jamesnicholson/ebay-apollo-server

Repository files navigation

Ebay Apollo Server

Apollo Server running on express and consuming ebays deals feed

Demo: http://159.203.110.164:9002/graphql

New Features!

  • Deals can have offsets, this will start the deal list at particular index
  • Ebay Apollo Server has been dockerized
    $ docker run -p 9002:9002 jam3snicholson/ebay-apollo-server

GraphQL query

Fetch a group of deals via country and category with a limit.

  query deals($country: String!, $category: String, $limit: Int, $offset: Int) {
    deals(country: $country, category:$category, limit:$limit, offset: $offset) {
      itemId,
      title,
      price,
      image225
    }
  }

  {
    "country" : "EBAY-AU",
    "category": "260010",
    "limit": 2,
    "offset": 0
  }

Fetch a group of deals via country with a limit.

  query deals($country: String!, $limit: Int, $offset: Int) {
   deals(country: $country, limit:$limit, offset: $offset) {
       itemId,
       title,
       price,
       image225
   }
 }

 {
   "country" : "EBAY-AU",
   "limit": 2,
   "offset": 0
 }

A list of categories

{
 categories{
   id
   name
 }
}

A list of countries

{
 countries{
   id
   name
 }
}

Enjoy :)

About

Apollo Server running on express and consuming the Ebay deals feed

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published