Skip to content

ingdanni/graphql-jsonplaceholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graphql JSONPlaceholder implementation

This is a Graphql server using JSONPlaceholder fake REST API for Testing and Prototyping.

Live example

https://sheltered-dawn-55270.herokuapp.com

Sample Queries

Fetch posts:

query {
  posts {
    id
    userId
    title
    body
  }
}

Fetch todos:

query {
  todos {
    id
    userId
    title
    completed
  }
}

Fetch users:

query {
  users {
    id
    name
    username
    email
    phone
    website
  }
}

Fetch single user:

query fetchUser($id: Int!){
  user(id: $id) {
    id
    name
    username
    email
    phone
    website
    posts {
      id
      title
      body
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published