-
-
Save amandeepmittal/f68915ab3c15cf163b0f85e419d4f0b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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