-
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.
Merge pull request #2 from jhnnsrs/with_next
With next
- Loading branch information
Showing
248 changed files
with
4,273 additions
and
3,989 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
fragment Leaf on Leaf { | ||
typename: __typename | ||
bold | ||
italic | ||
code | ||
text | ||
} | ||
|
||
fragment Node on CommentNode { | ||
typename: __typename | ||
children { | ||
typename: __typename | ||
...Leaf | ||
...LevelDownParagraph | ||
...LevelDownMention | ||
} | ||
} | ||
|
||
fragment LevelDownParagraph on ParagraphDescendent { | ||
size | ||
untypedChildren | ||
} | ||
|
||
fragment LevelDownMention on MentionDescendent { | ||
user { | ||
...CommentUser | ||
} | ||
} | ||
|
||
fragment LevelDownDescendent on Descendent { | ||
typename: __typename | ||
...Leaf | ||
} | ||
|
||
fragment Mention on MentionDescendent { | ||
user { | ||
...CommentUser | ||
} | ||
...Node | ||
} | ||
|
||
fragment CommentUser on User { | ||
id | ||
username | ||
profile { | ||
avatar | ||
} | ||
} | ||
|
||
fragment Paragraph on ParagraphDescendent { | ||
size | ||
...Node | ||
} | ||
|
||
fragment Descendent on Descendent { | ||
typename: __typename | ||
|
||
...Mention | ||
...Paragraph | ||
...Leaf | ||
} | ||
|
||
fragment SubthreadComment on Comment { | ||
user { | ||
...CommentUser | ||
} | ||
parent { | ||
id | ||
} | ||
createdAt | ||
descendents { | ||
...Descendent | ||
} | ||
} | ||
|
||
fragment ListComment on Comment { | ||
user { | ||
...CommentUser | ||
} | ||
parent { | ||
id | ||
} | ||
descendents { | ||
...Descendent | ||
} | ||
resolved | ||
resolvedBy { | ||
...CommentUser | ||
} | ||
id | ||
createdAt | ||
children { | ||
...SubthreadComment | ||
} | ||
} | ||
|
||
fragment MentionComment on Comment { | ||
user { | ||
...CommentUser | ||
} | ||
parent { | ||
id | ||
} | ||
descendents { | ||
...Descendent | ||
} | ||
id | ||
createdAt | ||
children { | ||
...SubthreadComment | ||
} | ||
mentions { | ||
...CommentUser | ||
} | ||
resolved | ||
resolvedBy { | ||
...CommentUser | ||
} | ||
object | ||
identifier | ||
} | ||
|
||
fragment DetailComment on Comment { | ||
user { | ||
...CommentUser | ||
} | ||
parent { | ||
id | ||
} | ||
descendents { | ||
...Descendent | ||
} | ||
id | ||
|
||
resolved | ||
resolvedBy { | ||
...CommentUser | ||
} | ||
createdAt | ||
children { | ||
...SubthreadComment | ||
} | ||
mentions { | ||
...CommentUser | ||
} | ||
object | ||
identifier | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
mutation CreateComment( | ||
$object: ID! | ||
$identifier: String! | ||
$descendents: [DescendendInput]! | ||
$parent: ID | ||
) { | ||
createComment( | ||
object: $object | ||
identifier: $identifier | ||
descendents: $descendents | ||
parent: $parent | ||
) { | ||
...ListComment | ||
} | ||
} | ||
|
||
mutation ReplyTo($descendents: [DescendendInput]!, $parent: ID!) { | ||
replyTo(descendents: $descendents, parent: $parent) { | ||
...ListComment | ||
} | ||
} | ||
|
||
mutation ResolveComment($id: ID!) { | ||
resolveComment(id: $id) { | ||
...ListComment | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
query CommentsFor($object: ID!, $identifier: String!) { | ||
commentsfor(identifier: $identifier, object: $object) { | ||
...ListComment | ||
} | ||
} | ||
|
||
query MyMentions { | ||
mymentions { | ||
...MentionComment | ||
} | ||
} | ||
|
||
query DetailComment($id: ID!) { | ||
comment(id: $id) { | ||
...DetailComment | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
subscription WatchMentions { | ||
mymentions { | ||
create { | ||
...MentionComment | ||
} | ||
update { | ||
...MentionComment | ||
} | ||
} | ||
} |
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 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
Oops, something went wrong.