logo

gql

The gql function is a dirty hack to get editor features for GraphQL queries without using the real GraphQL parser.

import { gql } from '@aracna/core';

const GET_USERS_QUERY = gql`
  query getUsers {
    users {
      id
      name
      email
    }
  }
`