8 lines
275 B
TypeScript
8 lines
275 B
TypeScript
import { gql as apolloGql } from '@apollo/client/core'
|
|
import { markRaw } from 'vue'
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
export function gql(literals: string | readonly string[], ...args: any[]) {
|
|
return markRaw(apolloGql(literals, ...args))
|
|
}
|