Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/graphql_shared/queries/users_autocomplete.query.graphql')
-rw-r--r--app/assets/javascripts/graphql_shared/queries/users_autocomplete.query.graphql20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/assets/javascripts/graphql_shared/queries/users_autocomplete.query.graphql b/app/assets/javascripts/graphql_shared/queries/users_autocomplete.query.graphql
new file mode 100644
index 00000000000..39efd5eddef
--- /dev/null
+++ b/app/assets/javascripts/graphql_shared/queries/users_autocomplete.query.graphql
@@ -0,0 +1,20 @@
+query usersAutocomplete($fullPath: ID!, $search: String, $isProject: Boolean = false) {
+ group(fullPath: $fullPath) @skip(if: $isProject) {
+ id
+ autocompleteUsers(search: $search) {
+ id
+ avatarUrl
+ name
+ username
+ }
+ }
+ project(fullPath: $fullPath) @include(if: $isProject) {
+ id
+ autocompleteUsers(search: $search) {
+ id
+ avatarUrl
+ name
+ username
+ }
+ }
+}