searchOverview.graphql 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. query search(
  2. $search: String!
  3. $onlyIn: EnumSearchableModels
  4. $limit: Int = 30
  5. ) {
  6. search(search: $search, onlyIn: $onlyIn, limit: $limit) {
  7. ... on Ticket {
  8. id
  9. internalId
  10. title
  11. number
  12. state {
  13. id
  14. name
  15. }
  16. priority {
  17. name
  18. defaultCreate
  19. uiColor
  20. }
  21. customer {
  22. id
  23. internalId
  24. fullname
  25. }
  26. updatedAt
  27. updatedBy {
  28. id
  29. fullname
  30. }
  31. stateColorCode
  32. }
  33. ... on User {
  34. id
  35. internalId
  36. firstname
  37. lastname
  38. image
  39. active
  40. outOfOffice
  41. outOfOfficeStartAt
  42. outOfOfficeEndAt
  43. vip
  44. organization {
  45. id
  46. internalId
  47. name
  48. }
  49. updatedAt
  50. updatedBy {
  51. id
  52. fullname
  53. }
  54. ticketsCount {
  55. open
  56. closed
  57. }
  58. }
  59. ... on Organization {
  60. id
  61. internalId
  62. members(first: 2) {
  63. edges {
  64. node {
  65. id
  66. fullname
  67. }
  68. }
  69. totalCount
  70. }
  71. active
  72. name
  73. vip
  74. updatedAt
  75. updatedBy {
  76. id
  77. fullname
  78. }
  79. ticketsCount {
  80. open
  81. closed
  82. }
  83. }
  84. }
  85. }