Safe Haskell | None |
---|---|
Language | Haskell2010 |
Definitions for schema building configuration.
Synopsis
- data SchemaOptions = SchemaOptions {}
- data StringifyNumbers
- data DangerouslyCollapseBooleans
- data InferFunctionPermissions
- data RemoteSchemaPermissions
- data OptimizePermissionFilters
Documentation
data SchemaOptions Source #
The record of options required to build the schema. This includes options
that can be enabled with ExperimentalFeature
flags.
data StringifyNumbers Source #
Should we represent numbers in our responses as numbers, or strings? Some backends can return numbers that exceed the bounds of JSON's own number type. In these cases, we can use stringified versions of these numbers to avoid this problem.
Instances
Eq StringifyNumbers Source # | |
Defined in Hasura.GraphQL.Schema.Options (==) :: StringifyNumbers -> StringifyNumbers -> Bool # (/=) :: StringifyNumbers -> StringifyNumbers -> Bool # | |
Show StringifyNumbers Source # | |
Defined in Hasura.GraphQL.Schema.Options showsPrec :: Int -> StringifyNumbers -> ShowS # show :: StringifyNumbers -> String # showList :: [StringifyNumbers] -> ShowS # | |
FromEnv StringifyNumbers Source # | |
Defined in Hasura.Server.Init.Env |
data DangerouslyCollapseBooleans Source #
Should Boolean fields be collapsed to True
when a null value is
given? This was the behaviour of Hasura V1, and is now discouraged.
Instances
Eq DangerouslyCollapseBooleans Source # | |
Show DangerouslyCollapseBooleans Source # | |
Defined in Hasura.GraphQL.Schema.Options showsPrec :: Int -> DangerouslyCollapseBooleans -> ShowS # show :: DangerouslyCollapseBooleans -> String # showList :: [DangerouslyCollapseBooleans] -> ShowS # | |
FromJSON DangerouslyCollapseBooleans Source # | |
Defined in Hasura.GraphQL.Schema.Options parseJSON :: Value -> Parser DangerouslyCollapseBooleans parseJSONList :: Value -> Parser [DangerouslyCollapseBooleans] | |
ToJSON DangerouslyCollapseBooleans Source # | |
Defined in Hasura.GraphQL.Schema.Options toJSON :: DangerouslyCollapseBooleans -> Value toEncoding :: DangerouslyCollapseBooleans -> Encoding toJSONList :: [DangerouslyCollapseBooleans] -> Value toEncodingList :: [DangerouslyCollapseBooleans] -> Encoding | |
FromEnv DangerouslyCollapseBooleans Source # | |
Defined in Hasura.Server.Init.Env |
data InferFunctionPermissions Source #
Should we infer function permissions? If this flag is set to
InferFunctionPermissions
, we may fail to build expression parsers
in buildQueryAndSubscriptionFields
for users with unrecognised roles.
Instances
Eq InferFunctionPermissions Source # | |
Defined in Hasura.GraphQL.Schema.Options | |
Show InferFunctionPermissions Source # | |
Defined in Hasura.GraphQL.Schema.Options showsPrec :: Int -> InferFunctionPermissions -> ShowS # show :: InferFunctionPermissions -> String # showList :: [InferFunctionPermissions] -> ShowS # | |
FromJSON InferFunctionPermissions Source # | |
Defined in Hasura.GraphQL.Schema.Options parseJSON :: Value -> Parser InferFunctionPermissions parseJSONList :: Value -> Parser [InferFunctionPermissions] | |
ToJSON InferFunctionPermissions Source # | |
Defined in Hasura.GraphQL.Schema.Options toJSON :: InferFunctionPermissions -> Value toEncoding :: InferFunctionPermissions -> Encoding toJSONList :: [InferFunctionPermissions] -> Value toEncodingList :: [InferFunctionPermissions] -> Encoding | |
FromEnv InferFunctionPermissions Source # | |
Defined in Hasura.Server.Init.Env |
data RemoteSchemaPermissions Source #
Should we enable remote schema permissions? If so, these permissions will
influence buildGQLContext
.
Instances
Eq RemoteSchemaPermissions Source # | |
Defined in Hasura.GraphQL.Schema.Options | |
Show RemoteSchemaPermissions Source # | |
Defined in Hasura.GraphQL.Schema.Options showsPrec :: Int -> RemoteSchemaPermissions -> ShowS # show :: RemoteSchemaPermissions -> String # showList :: [RemoteSchemaPermissions] -> ShowS # | |
FromJSON RemoteSchemaPermissions Source # | |
Defined in Hasura.GraphQL.Schema.Options parseJSON :: Value -> Parser RemoteSchemaPermissions parseJSONList :: Value -> Parser [RemoteSchemaPermissions] | |
ToJSON RemoteSchemaPermissions Source # | |
Defined in Hasura.GraphQL.Schema.Options toJSON :: RemoteSchemaPermissions -> Value toEncoding :: RemoteSchemaPermissions -> Encoding toJSONList :: [RemoteSchemaPermissions] -> Value toEncodingList :: [RemoteSchemaPermissions] -> Encoding | |
FromEnv RemoteSchemaPermissions Source # | |
Defined in Hasura.Server.Init.Env |
data OptimizePermissionFilters Source #
Should we attempt to deduplicate permission filters? This flag is used in
relationshipField
to determine whether
certain row-level permission filters can be dropped in certain cases.
Instances
Eq OptimizePermissionFilters Source # | |
Defined in Hasura.GraphQL.Schema.Options | |
Show OptimizePermissionFilters Source # | |
Defined in Hasura.GraphQL.Schema.Options showsPrec :: Int -> OptimizePermissionFilters -> ShowS # show :: OptimizePermissionFilters -> String # showList :: [OptimizePermissionFilters] -> ShowS # |