mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 18:42:30 +03:00
ce243f5899
* add types to represent unparsed http gql requests This will help when we add caching of frequently used ASTs * query plan caching * move livequery to execute * add multiplexed module * session variable can be customised depending on the context Previously the value was always "current_setting('hasura.user')" * get rid of typemap requirement in reusable plan * subscriptions are multiplexed when possible * use lazytx for introspection to avoid acquiring a pg connection * refactor to make execute a completely decoupled module * don't issue a transaction for a query * don't use current setting for explained sql * move postgres related types to a different module * validate variableValues on postgres before multiplexing subs * don't user current_setting for queries over ws * plan_cache is only visible when developer flag is enabled * introduce 'batch size' when multiplexing subscriptions * bump stackage to 13.16 * fix schema_stitching test case error code * store hashes instead of actual responses for subscriptions * internal api to dump subscriptions state * remove PlanCache from SchemaCacheRef * allow live query options to be configured on server startup * capture metrics for multiplexed subscriptions * more metrics captured for multiplexed subs * switch to tvar based hashmap for faster snapshotting * livequery modules do not expose internal details * fix typo in live query env vars * switch to hasura's pg-client-hs
14 lines
363 B
Haskell
14 lines
363 B
Haskell
module Data.Aeson.Extended
|
|
( module J
|
|
, encodeToStrictText
|
|
) where
|
|
|
|
import Hasura.Prelude
|
|
|
|
import Data.Aeson as J
|
|
import qualified Data.Aeson.Text as JT
|
|
import qualified Data.Text.Lazy as LT
|
|
|
|
encodeToStrictText :: (ToJSON a) => a -> Text
|
|
encodeToStrictText = LT.toStrict . JT.encodeToLazyText
|