Skip to content

Commit

Permalink
Migrate to Lens v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Dec 4, 2024
1 parent 20a9e5f commit e2ed254
Show file tree
Hide file tree
Showing 13 changed files with 68 additions and 64 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fragment CommentNotificationFields on CommentNotification {
id
comment {
...PostFields
...AnyPostFields
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fragment MentionNotificationFields on MentionNotification {
id
post {
...PostFields
...AnyPostFields
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fragment QuoteNotificationFields on QuoteNotification {
id
quote {
...PostFields
...AnyPostFields
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fragment ReactionNotificationFields on ReactionNotification {
id
post {
...PostFields
...AnyPostFields
}
reactions {
account {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fragment RepostNotificationFields on RepostNotification {
id
post {
...PostFields
...AnyPostFields
}
reposts {
account {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fragment AnyPostFields on AnyPost {
... on Post {
...PostFields
}
... on Repost {
...RepostFields
}
}
2 changes: 1 addition & 1 deletion packages/indexer/documents/queries/post/Post.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
query Post($request: PostRequest!) {
post(request: $request) {
...PostFields
...AnyPostFields
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
query PostBookmarks($request: PostBookmarksRequest!) {
postBookmarks(request: $request) {
items {
... on Post {
...PostFields
}
... on Repost {
...RepostFields
}
...AnyPostFields
}
pageInfo {
...PaginatedResultInfoFields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
query PostReferences($request: PostReferencesRequest!) {
postReferences(request: $request) {
items {
... on Post {
...PostFields
}
... on Repost {
...RepostFields
}
...AnyPostFields
}
pageInfo {
...PaginatedResultInfoFields
Expand Down
7 changes: 1 addition & 6 deletions packages/indexer/documents/queries/post/Posts.graphql
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
query Posts($request: PostsRequest!) {
posts(request: $request) {
items {
... on Post {
...PostFields
}
... on Repost {
...RepostFields
}
...AnyPostFields
}
pageInfo {
...PaginatedResultInfoFields
Expand Down
7 changes: 1 addition & 6 deletions packages/indexer/documents/queries/post/SearchPosts.graphql
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
query SearchPosts($request: SearchPostsRequest!) {
searchPosts(request: $request) {
items {
... on Post {
...PostFields
}
... on Repost {
...RepostFields
}
...AnyPostFields
}
pageInfo {
...PaginatedResultInfoFields
Expand Down
6 changes: 3 additions & 3 deletions packages/indexer/documents/queries/post/Timeline.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ query Timeline($request: TimelineRequest!) {
items {
id
primary {
...PostFields
...AnyPostFields
}
comments {
...PostFields
...AnyPostFields
}
reposts {
...PostFields
...AnyPostFields
}
}
pageInfo {
Expand Down
78 changes: 47 additions & 31 deletions packages/indexer/generated.ts

Large diffs are not rendered by default.

0 comments on commit e2ed254

Please sign in to comment.