Code Monkey home page Code Monkey logo

graphql-content-hub's Introduction

GraphQL Content Hub

Hi! This repo is for an Apollo GraphQL Server acting as a content hub. The goal of this was to try and pull in data from different sources as serve them from one graphql server.

Url: Netlify

Netlify Status

Blog Available on

Sources

The following information is used in the content hub

  • Books JSON File stored in the codebase
  • Rick and Morty GraphQL API
  • OMDB Rest API
  • Trevorblades Countries GraphQL API

Stack

This project is essentially running an apollo server with the following dependancies:

  • apollo-server
  • graphql
  • graphql-request
  • isomorphic-fetch
  • apollo-datasource-rest

Available Queries

Rick and Morty

characters {
  	name
	id
}

Books

Search for all books and query by a Book Id.

books {
  title
  author
}

book(title: "The Awakening") {
  author
}

Movie

Returns a random movie from the OMDB API. Search for a movie also by name

#returns random movie
movie {
  Title
  Year
  Rated
}
#returns a random batman movie
movie(name: "Batman") {
  Title
  Year
  Rated
}

Countries

countries {
  name
  code
  capital
}

Useful Links

graphql-content-hub's People

Contributors

garyb1 avatar

Stargazers

Patrick Schneider avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.