mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-08 08:44:24 +03:00
18 lines
449 B
Haskell
18 lines
449 B
Haskell
|
{-# LANGUAGE FlexibleContexts #-}
|
||
|
{-# LANGUAGE OverloadedStrings #-}
|
||
|
{-# LANGUAGE QuasiQuotes #-}
|
||
|
{-# LANGUAGE TemplateHaskell #-}
|
||
|
|
||
|
module TH
|
||
|
( metadataQuery
|
||
|
) where
|
||
|
|
||
|
import Language.Haskell.TH.Syntax (Q, TExp, unTypeQ)
|
||
|
|
||
|
import qualified Data.Yaml.TH as Y
|
||
|
|
||
|
import Hasura.Server.Query
|
||
|
|
||
|
metadataQuery :: RQLQuery
|
||
|
metadataQuery = $(unTypeQ (Y.decodeFile "src-rsr/hdb_metadata.yaml" :: Q (TExp RQLQuery)))
|