diff options
Diffstat (limited to 'app/assets/javascripts/profile/components/graphql/get_user_snippets.query.graphql')
-rw-r--r-- | app/assets/javascripts/profile/components/graphql/get_user_snippets.query.graphql | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app/assets/javascripts/profile/components/graphql/get_user_snippets.query.graphql b/app/assets/javascripts/profile/components/graphql/get_user_snippets.query.graphql new file mode 100644 index 00000000000..ec743b8747f --- /dev/null +++ b/app/assets/javascripts/profile/components/graphql/get_user_snippets.query.graphql @@ -0,0 +1,39 @@ +#import "~/graphql_shared/fragments/page_info.fragment.graphql" + +query getUserSnippets( + $id: UserID! + $first: Int + $last: Int + $afterToken: String + $beforeToken: String +) { + user(id: $id) { + id + avatarUrl + name + username + snippets(first: $first, last: $last, before: $beforeToken, after: $afterToken) { + pageInfo { + ...PageInfo + } + nodes { + id + title + webUrl + visibilityLevel + createdAt + updatedAt + blobs { + nodes { + name + } + } + notes { + nodes { + id + } + } + } + } + } +} |