-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
380a2f5
commit e57dc8c
Showing
4 changed files
with
98 additions
and
47 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,97 @@ | ||
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 | ||
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 | ||
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 | ||
views: Int | ||
likes: Int | ||
retweets: Int | ||
responses: Int | ||
} | ||
|
||
type Notification { | ||
id: ID | ||
date: Date | ||
type: String | ||
id: ID | ||
date: Date | ||
type: String | ||
} | ||
|
||
union StatOrNotification = Stat | Notification | ||
|
||
type Meta { | ||
count: Int | ||
count: Int | ||
} | ||
|
||
enum ActionExecutionCapabilitySetting { | ||
""" | ||
All action executions are enabled. | ||
""" | ||
ALL_ACTIONS | ||
|
||
""" | ||
All action executions are disabled. | ||
""" | ||
DISABLED | ||
|
||
""" | ||
Only actions defined within the repo are allowed. | ||
""" | ||
LOCAL_ACTIONS_ONLY | ||
|
||
""" | ||
Organization administrators action execution capabilities. | ||
""" | ||
NO_POLICY | ||
} | ||
|
||
input AddCommentInput { | ||
""" | ||
The contents of the comment. | ||
""" | ||
body: String! | ||
|
||
""" | ||
A unique identifier for the client performing the mutation. | ||
""" | ||
clientMutationId: String | ||
|
||
""" | ||
The Node ID of the subject to modify. | ||
""" | ||
subjectId: ID! | ||
} | ||
|
||
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 | ||
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 | ||
createTweet(body: String): Tweet | ||
deleteTweet(id: ID!): Tweet | ||
markTweetRead(id: ID!): Boolean | ||
} |