graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.RQL.Types.RemoteSchema

Synopsis

Documentation

type UrlFromEnv = Text Source #

newtype RemoteSchemaName Source #

Remote schema identifier.

NOTE: no validation on the character set is done here; it's likely there is a bug (FIXME) where this interacts with remote relationships and some name mangling needs to happen.

Instances

Instances details
Eq RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Ord RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep RemoteSchemaName :: Type -> Type #

NFData RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

rnf :: RemoteSchemaName -> () #

Hashable RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

FromJSON RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

parseJSON :: Value -> Parser RemoteSchemaName

parseJSONList :: Value -> Parser [RemoteSchemaName]

ToJSONKey RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

toJSONKey :: ToJSONKeyFunction RemoteSchemaName

toJSONKeyList :: ToJSONKeyFunction [RemoteSchemaName]

ToJSON RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

ToTxt RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

toTxt :: RemoteSchemaName -> Text Source #

FromCol RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

ToPrepArg RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

toPrepVal :: RemoteSchemaName -> PrepArg

Cacheable RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaName Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaName = D1 ('MetaData "RemoteSchemaName" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "RemoteSchemaName" 'PrefixI 'True) (S1 ('MetaSel ('Just "unRemoteSchemaName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NonEmptyText)))

data RemoteTypeCustomization Source #

Constructors

RemoteTypeCustomization 

Fields

Instances

Instances details
Eq RemoteTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show RemoteTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic RemoteTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep RemoteTypeCustomization :: Type -> Type #

NFData RemoteTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

rnf :: RemoteTypeCustomization -> () #

Hashable RemoteTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

FromJSON RemoteTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

parseJSON :: Value -> Parser RemoteTypeCustomization

parseJSONList :: Value -> Parser [RemoteTypeCustomization]

ToJSON RemoteTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable RemoteTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteTypeCustomization = D1 ('MetaData "RemoteTypeCustomization" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RemoteTypeCustomization" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rtcPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name)) :*: (S1 ('MetaSel ('Just "_rtcSuffix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name)) :*: S1 ('MetaSel ('Just "_rtcMapping") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Name Name)))))

data RemoteFieldCustomization Source #

Constructors

RemoteFieldCustomization 

Fields

Instances

Instances details
Eq RemoteFieldCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show RemoteFieldCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic RemoteFieldCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep RemoteFieldCustomization :: Type -> Type #

NFData RemoteFieldCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Hashable RemoteFieldCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

FromJSON RemoteFieldCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

parseJSON :: Value -> Parser RemoteFieldCustomization

parseJSONList :: Value -> Parser [RemoteFieldCustomization]

ToJSON RemoteFieldCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable RemoteFieldCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteFieldCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteFieldCustomization = D1 ('MetaData "RemoteFieldCustomization" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RemoteFieldCustomization" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_rfcParentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Name) :*: S1 ('MetaSel ('Just "_rfcPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name))) :*: (S1 ('MetaSel ('Just "_rfcSuffix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name)) :*: S1 ('MetaSel ('Just "_rfcMapping") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Name Name)))))

data RemoteSchemaCustomization Source #

Instances

Instances details
Eq RemoteSchemaCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show RemoteSchemaCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic RemoteSchemaCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep RemoteSchemaCustomization :: Type -> Type #

NFData RemoteSchemaCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Hashable RemoteSchemaCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

FromJSON RemoteSchemaCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

parseJSON :: Value -> Parser RemoteSchemaCustomization

parseJSONList :: Value -> Parser [RemoteSchemaCustomization]

ToJSON RemoteSchemaCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable RemoteSchemaCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaCustomization = D1 ('MetaData "RemoteSchemaCustomization" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RemoteSchemaCustomization" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rscRootFieldsNamespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name)) :*: (S1 ('MetaSel ('Just "_rscTypeNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RemoteTypeCustomization)) :*: S1 ('MetaSel ('Just "_rscFieldNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RemoteFieldCustomization])))))

data ValidatedRemoteSchemaDef Source #

RemoteSchemaDef after validation and baking-in of defaults in validateRemoteSchemaDef.

Instances

Instances details
Eq ValidatedRemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show ValidatedRemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic ValidatedRemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep ValidatedRemoteSchemaDef :: Type -> Type #

NFData ValidatedRemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Hashable ValidatedRemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

FromJSON ValidatedRemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

parseJSON :: Value -> Parser ValidatedRemoteSchemaDef

parseJSONList :: Value -> Parser [ValidatedRemoteSchemaDef]

ToJSON ValidatedRemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable ValidatedRemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep ValidatedRemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep ValidatedRemoteSchemaDef = D1 ('MetaData "ValidatedRemoteSchemaDef" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ValidatedRemoteSchemaDef" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_vrsdUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (EnvRecord URI)) :*: S1 ('MetaSel ('Just "_vrsdHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [HeaderConf])) :*: (S1 ('MetaSel ('Just "_vrsdFwdClientHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "_vrsdTimeoutSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "_vrsdCustomization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RemoteSchemaCustomization))))))

data RemoteSchemaCustomizer Source #

Constructors

RemoteSchemaCustomizer 

Fields

Instances

Instances details
Eq RemoteSchemaCustomizer Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show RemoteSchemaCustomizer Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic RemoteSchemaCustomizer Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep RemoteSchemaCustomizer :: Type -> Type #

NFData RemoteSchemaCustomizer Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

rnf :: RemoteSchemaCustomizer -> () #

Hashable RemoteSchemaCustomizer Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

FromJSON RemoteSchemaCustomizer Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

parseJSON :: Value -> Parser RemoteSchemaCustomizer

parseJSONList :: Value -> Parser [RemoteSchemaCustomizer]

ToJSON RemoteSchemaCustomizer Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable RemoteSchemaCustomizer Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaCustomizer Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaCustomizer = D1 ('MetaData "RemoteSchemaCustomizer" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RemoteSchemaCustomizer" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rscNamespaceFieldName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name)) :*: (S1 ('MetaSel ('Just "_rscCustomizeTypeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Name Name)) :*: S1 ('MetaSel ('Just "_rscCustomizeFieldName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Name (HashMap Name Name))))))

data RemoteSchemaInfo Source #

RemoteSchemaDef after the RemoteSchemaCustomizer has been generated by fetchRemoteSchema

Instances

Instances details
Eq RemoteSchemaInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show RemoteSchemaInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic RemoteSchemaInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep RemoteSchemaInfo :: Type -> Type #

NFData RemoteSchemaInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

rnf :: RemoteSchemaInfo -> () #

Hashable RemoteSchemaInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

FromJSON RemoteSchemaInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

parseJSON :: Value -> Parser RemoteSchemaInfo

parseJSONList :: Value -> Parser [RemoteSchemaInfo]

ToJSON RemoteSchemaInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable RemoteSchemaInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaInfo = D1 ('MetaData "RemoteSchemaInfo" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RemoteSchemaInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "rsDef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ValidatedRemoteSchemaDef) :*: S1 ('MetaSel ('Just "rsCustomizer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaCustomizer)))

data RemoteSchemaDef Source #

Unvalidated remote schema config, from the user's API request

Instances

Instances details
Eq RemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show RemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic RemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep RemoteSchemaDef :: Type -> Type #

NFData RemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

rnf :: RemoteSchemaDef -> () #

FromJSON RemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

parseJSON :: Value -> Parser RemoteSchemaDef

parseJSONList :: Value -> Parser [RemoteSchemaDef]

ToJSON RemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

toJSON :: RemoteSchemaDef -> Value

toEncoding :: RemoteSchemaDef -> Encoding

toJSONList :: [RemoteSchemaDef] -> Value

toEncodingList :: [RemoteSchemaDef] -> Encoding

Cacheable RemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaDef Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaDef = D1 ('MetaData "RemoteSchemaDef" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RemoteSchemaDef" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_rsdUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InputWebhook)) :*: (S1 ('MetaSel ('Just "_rsdUrlFromEnv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UrlFromEnv)) :*: S1 ('MetaSel ('Just "_rsdHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [HeaderConf])))) :*: (S1 ('MetaSel ('Just "_rsdForwardClientHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "_rsdTimeoutSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_rsdCustomization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RemoteSchemaCustomization))))))

data AddRemoteSchemaQuery Source #

The payload for add_remote_schema, and a component of Metadata.

Constructors

AddRemoteSchemaQuery 

Fields

Instances

Instances details
Eq AddRemoteSchemaQuery Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show AddRemoteSchemaQuery Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic AddRemoteSchemaQuery Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep AddRemoteSchemaQuery :: Type -> Type #

NFData AddRemoteSchemaQuery Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

rnf :: AddRemoteSchemaQuery -> () #

FromJSON AddRemoteSchemaQuery Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

parseJSON :: Value -> Parser AddRemoteSchemaQuery

parseJSONList :: Value -> Parser [AddRemoteSchemaQuery]

ToJSON AddRemoteSchemaQuery Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable AddRemoteSchemaQuery Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep AddRemoteSchemaQuery Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep AddRemoteSchemaQuery = D1 ('MetaData "AddRemoteSchemaQuery" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "AddRemoteSchemaQuery" 'PrefixI 'True) (S1 ('MetaSel ('Just "_arsqName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaName) :*: (S1 ('MetaSel ('Just "_arsqDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaDef) :*: S1 ('MetaSel ('Just "_arsqComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newtype RemoteSchemaPermissionDefinition Source #

Constructors

RemoteSchemaPermissionDefinition 

Fields

Instances

Instances details
Eq RemoteSchemaPermissionDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show RemoteSchemaPermissionDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic RemoteSchemaPermissionDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep RemoteSchemaPermissionDefinition :: Type -> Type #

NFData RemoteSchemaPermissionDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Hashable RemoteSchemaPermissionDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

FromJSON RemoteSchemaPermissionDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

ToJSON RemoteSchemaPermissionDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable RemoteSchemaPermissionDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaPermissionDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaPermissionDefinition = D1 ('MetaData "RemoteSchemaPermissionDefinition" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "RemoteSchemaPermissionDefinition" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rspdSchema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SchemaDocument)))

data AddRemoteSchemaPermission Source #

Instances

Instances details
Eq AddRemoteSchemaPermission Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show AddRemoteSchemaPermission Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic AddRemoteSchemaPermission Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep AddRemoteSchemaPermission :: Type -> Type #

NFData AddRemoteSchemaPermission Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

FromJSON AddRemoteSchemaPermission Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Methods

parseJSON :: Value -> Parser AddRemoteSchemaPermission

parseJSONList :: Value -> Parser [AddRemoteSchemaPermission]

ToJSON AddRemoteSchemaPermission Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable AddRemoteSchemaPermission Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep AddRemoteSchemaPermission Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep AddRemoteSchemaPermission = D1 ('MetaData "AddRemoteSchemaPermission" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "AddRemoteSchemaPermission" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_arspRemoteSchema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaName) :*: S1 ('MetaSel ('Just "_arspRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName)) :*: (S1 ('MetaSel ('Just "_arspDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaPermissionDefinition) :*: S1 ('MetaSel ('Just "_arspComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

data DropRemoteSchemaPermissions Source #

Instances

Instances details
Eq DropRemoteSchemaPermissions Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show DropRemoteSchemaPermissions Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic DropRemoteSchemaPermissions Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep DropRemoteSchemaPermissions :: Type -> Type #

NFData DropRemoteSchemaPermissions Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

FromJSON DropRemoteSchemaPermissions Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

ToJSON DropRemoteSchemaPermissions Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable DropRemoteSchemaPermissions Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep DropRemoteSchemaPermissions Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep DropRemoteSchemaPermissions = D1 ('MetaData "DropRemoteSchemaPermissions" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "DropRemoteSchemaPermissions" 'PrefixI 'True) (S1 ('MetaSel ('Just "_drspRemoteSchema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaName) :*: S1 ('MetaSel ('Just "_drspRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName)))

data SessionArgumentPresetInfo Source #

See resolveRemoteVariable function. This data type is used for validation of the session variable value

Constructors

SessionArgumentPresetScalar 
SessionArgumentPresetEnum (HashSet EnumValue) 

Instances

Instances details
Eq SessionArgumentPresetInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Ord SessionArgumentPresetInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show SessionArgumentPresetInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic SessionArgumentPresetInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep SessionArgumentPresetInfo :: Type -> Type #

Hashable SessionArgumentPresetInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable SessionArgumentPresetInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep SessionArgumentPresetInfo Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep SessionArgumentPresetInfo = D1 ('MetaData "SessionArgumentPresetInfo" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "SessionArgumentPresetScalar" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SessionArgumentPresetEnum" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashSet EnumValue))))

data RemoteSchemaVariable Source #

Details required to resolve a "session variable preset" variable.

See Notes [Remote Schema Argument Presets] and [Remote Schema Permissions Architecture] for additional information.

Instances

Instances details
Eq RemoteSchemaVariable Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Ord RemoteSchemaVariable Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show RemoteSchemaVariable Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic RemoteSchemaVariable Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep RemoteSchemaVariable :: Type -> Type #

Hashable RemoteSchemaVariable Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable RemoteSchemaVariable Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaVariable Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

data RemoteSchemaInputValueDefinition Source #

Extends InputValueDefinition with an optional preset argument.

See Note [Remote Schema Argument Presets] for additional information.

Instances

Instances details
Eq RemoteSchemaInputValueDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Ord RemoteSchemaInputValueDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show RemoteSchemaInputValueDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic RemoteSchemaInputValueDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep RemoteSchemaInputValueDefinition :: Type -> Type #

Hashable RemoteSchemaInputValueDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable RemoteSchemaInputValueDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaInputValueDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaInputValueDefinition = D1 ('MetaData "RemoteSchemaInputValueDefinition" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RemoteSchemaInputValueDefinition" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rsitdDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InputValueDefinition) :*: S1 ('MetaSel ('Just "_rsitdPresetArgument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Value RemoteSchemaVariable)))))

newtype RemoteSchemaIntrospection Source #

Constructors

RemoteSchemaIntrospection (HashMap Name (TypeDefinition [Name] RemoteSchemaInputValueDefinition)) 

Instances

Instances details
Eq RemoteSchemaIntrospection Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Ord RemoteSchemaIntrospection Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Show RemoteSchemaIntrospection Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Generic RemoteSchemaIntrospection Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Associated Types

type Rep RemoteSchemaIntrospection :: Type -> Type #

Hashable RemoteSchemaIntrospection Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

Cacheable RemoteSchemaIntrospection Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaIntrospection Source # 
Instance details

Defined in Hasura.RQL.Types.RemoteSchema

type Rep RemoteSchemaIntrospection = D1 ('MetaData "RemoteSchemaIntrospection" "Hasura.RQL.Types.RemoteSchema" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "RemoteSchemaIntrospection" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HashMap Name (TypeDefinition [Name] RemoteSchemaInputValueDefinition)))))

getTypeName :: TypeDefinition possibleTypes inputType -> Name Source #

Extracts the name of a given type from its definition. TODO: move this to Language.GraphQL.Draft.Syntax.

lookupScalar :: RemoteSchemaIntrospection -> Name -> Maybe ScalarTypeDefinition Source #

lookupUnion :: RemoteSchemaIntrospection -> Name -> Maybe UnionTypeDefinition Source #

lookupEnum :: RemoteSchemaIntrospection -> Name -> Maybe EnumTypeDefinition Source #