Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created November 19, 2019 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amandeepmittal/f68915ab3c15cf163b0f85e419d4f0b7 to your computer and use it in GitHub Desktop.
Save amandeepmittal/f68915ab3c15cf163b0f85e419d4f0b7 to your computer and use it in GitHub Desktop.
export const Headlines = gql`
query TopHeadlines {
headlines
@rest(
type: "HeadlinesPayload"
path: "top-headlines?country=us&category=technology"
) {
totalResults
articles @type(name: "ArticlePayload") {
title
publishedAt
url
urlToImage
source @type(name: "SourcePayload") {
name
}
}
}
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment