Skip to content

Instantly share code, notes, and snippets.

@lporras
Created January 2, 2019 18:18
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 lporras/f3541a120d14d641a54aeeef848b6f38 to your computer and use it in GitHub Desktop.
Save lporras/f3541a120d14d641a54aeeef848b6f38 to your computer and use it in GitHub Desktop.
Get Tweets with GraphQL
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