graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Server.API.Query

Description

The RQL query ('v1query')

Synopsis

Documentation

data RQLQuery Source #

Instances

Instances details
FromJSON RQLQuery Source # 
Instance details

Defined in Hasura.Server.API.Query

queryModifiesSchemaCache :: RQLQuery -> Bool Source #

A predicate that determines whether the given query might modify/rebuild the schema cache. If so, it needs to acquire the global lock on the schema cache so that other queries do not modify it concurrently.

Ideally, we would enforce this using the type system — queries for which this function returns False should not be allowed to modify the schema cache. But for now we just ensure consistency by hand.