Created
January 2, 2019 18:18
-
-
Save lporras/f3541a120d14d641a54aeeef848b6f38 to your computer and use it in GitHub Desktop.
Get Tweets with GraphQL
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
query { | |
twitter { | |
ReactTweets: search(q: "ReactJs") { | |
...camposTweet | |
} | |
GraphQLTweets: search(q: "GraphQL") { | |
...camposTweet | |
created_at | |
} | |
JavascriptTweets: search(q: "Javascript") { | |
...camposTweet | |
} | |
} | |
} | |
fragment camposTweet on Tweet { | |
id | |
text | |
retweet_count | |
user { | |
name | |
screen_name | |
description | |
tweets_count | |
followers_count | |
tweets(limit: 5) { | |
id | |
text | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment