1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- query search(
- $search: String!
- $isAgent: Boolean!
- $onlyIn: EnumSearchableModels
- ) {
- search(search: $search, onlyIn: $onlyIn) {
- ... on Ticket {
- id
- internalId
- title
- number
- state {
- name
- }
- priority @include(if: $isAgent) {
- name
- defaultCreate
- uiColor
- }
- customer {
- id
- internalId
- fullname
- }
- updatedAt
- updatedBy @include(if: $isAgent) {
- id
- fullname
- }
- }
- ... on User {
- id
- internalId
- firstname
- lastname
- image
- organization {
- id
- internalId
- name
- }
- updatedAt
- updatedBy @include(if: $isAgent) {
- id
- fullname
- }
- ticketsCount {
- open
- closed
- }
- }
- ... on Organization {
- id
- internalId
- members(first: 2) {
- edges {
- node {
- id
- fullname
- }
- }
- totalCount
- }
- active
- name
- updatedAt
- updatedBy @include(if: $isAgent) {
- id
- fullname
- }
- ticketsCount {
- open
- closed
- }
- }
- }
- }
|