link-stack/apps/link/app/_graphql/searchQuery.ts

21 lines
391 B
TypeScript
Raw Normal View History

2023-10-16 09:20:40 +02:00
import { gql } from 'graphql-request';
export const searchQuery = gql`
query search($search: String!, $limit: Int = 10, $onlyIn: EnumSearchableModels = Ticket) {
search(search: $search, limit: $limit, onlyIn: $onlyIn) {
... on Ticket {
id
number
internalId
title
state {
id
name
}
stateColorCode
note
}
}
}
`;