Skip to content

abrarShariar/hackernews-react-apolo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hackernews clone with React + Apolo (GraphQL)

GraphQL queries, mutations and subscriptions

  • Query the first 10 links
query {
  feed (skip:0, first:10) {
  links {
    id
    url
    postedBy {
      name
      email
    }
  }
 }
}
  • Create a new links
mutation {
  post(
    description: "Prisma turns your database into a GraphQL API2 😎",
    url: "https://www.prismagraphql2.com"
  ) {
     	id
    	url
      description
      postedBy {
        name
        email
      }
    }
 }
  • Query first 5 links
query {
  feed (skip: 0, first: 5) {
    links {
      url
    }
  }
}

About

hackernews clone with react + apolo (GraphQL)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published