Last active
January 8, 2025 10:01
-
-
Save remy/61ff59cbd4ad0ef8c2d13f5b1fa88dbf 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
{ | |
"Url": "image.url", | |
"Date": "date.past" | |
} |
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
type Tweet { | |
id: ID! | |
# The tweet text. No more than 140 characters! | |
body: String | |
# When the tweet was published | |
date: Date | |
# Who published the tweet | |
Author: User | |
# Views, retweets, likes, etc | |
Stats: Stat | |
} | |
type User { | |
id: ID! | |
username: String | |
first_name: String | |
last_name: String | |
full_name: String | |
name: String @deprecated | |
avatar_url: Url | |
} | |
type Stat { | |
views: Int | |
likes: Int | |
retweets: Int | |
responses: Int | |
} | |
type Notification { | |
id: ID | |
date: Date | |
type: String | |
} | |
type Meta { | |
count: Int | |
} | |
scalar Url | |
scalar Date | |
type Query { | |
Tweet(id: ID!): Tweet | |
Tweets(limit: Int, skip: Int, sort_field: String, sort_order: String): [Tweet] | |
TweetsMeta: Meta | |
User(id: ID!): User | |
Notifications(limit: Int): [Notification] | |
NotificationsMeta: Meta | |
} | |
type Mutation { | |
createTweet ( | |
body: String | |
): Tweet | |
deleteTweet(id: ID!): Tweet | |
markTweetRead(id: ID!): Boolean | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment