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

Hasura.RemoteSchema.Metadata.RemoteRelationship

Synopsis

Documentation

data ToSchemaRelationshipDef Source #

Metadata representation of a relationship to a remote schema.

Constructors

ToSchemaRelationshipDef 

Fields

Instances

Instances details
FromJSON ToSchemaRelationshipDef Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

ToJSON ToSchemaRelationshipDef Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

HasCodec ToSchemaRelationshipDef Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Generic ToSchemaRelationshipDef Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Associated Types

type Rep ToSchemaRelationshipDef :: Type -> Type #

Show ToSchemaRelationshipDef Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

NFData ToSchemaRelationshipDef Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Methods

rnf :: ToSchemaRelationshipDef -> () #

Eq ToSchemaRelationshipDef Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

type Rep ToSchemaRelationshipDef Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

type Rep ToSchemaRelationshipDef = D1 ('MetaData "ToSchemaRelationshipDef" "Hasura.RemoteSchema.Metadata.RemoteRelationship" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ToSchemaRelationshipDef" 'PrefixI 'True) (S1 ('MetaSel ('Just "_trrdRemoteSchema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaName) :*: (S1 ('MetaSel ('Just "_trrdLhsFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashSet FieldName)) :*: S1 ('MetaSel ('Just "_trrdRemoteField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteFields))))

newtype RemoteFields Source #

Targeted field in a remote schema relationship. TODO: explain about subfields and why this is a container

Instances

Instances details
FromJSON RemoteFields Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

ToJSON RemoteFields Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

HasCodec RemoteFields Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Generic RemoteFields Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Associated Types

type Rep RemoteFields :: Type -> Type #

Show RemoteFields Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

NFData RemoteFields Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Methods

rnf :: RemoteFields -> () #

Eq RemoteFields Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

type Rep RemoteFields Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

type Rep RemoteFields = D1 ('MetaData "RemoteFields" "Hasura.RemoteSchema.Metadata.RemoteRelationship" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "RemoteFields" 'PrefixI 'True) (S1 ('MetaSel ('Just "unRemoteFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty FieldCall))))

data FieldCall Source #

Associates a field name with the arguments it will be passed in the query.

https://graphql.github.io/graphql-spec/June2018/#sec-Language.Arguments

Constructors

FieldCall 

Instances

Instances details
Generic FieldCall Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Associated Types

type Rep FieldCall :: Type -> Type #

Show FieldCall Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

NFData FieldCall Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Methods

rnf :: FieldCall -> () #

Eq FieldCall Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Hashable FieldCall Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

type Rep FieldCall Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

type Rep FieldCall = D1 ('MetaData "FieldCall" "Hasura.RemoteSchema.Metadata.RemoteRelationship" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "FieldCall" 'PrefixI 'True) (S1 ('MetaSel ('Just "fcName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Name) :*: S1 ('MetaSel ('Just "fcArguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteArguments)))

newtype RemoteArguments Source #

Arguments to a remote GraphQL fields, represented as a mapping from name to GraphQL Value. Said values can be variable names, in which case they'll be referring to values we're closed over. TODO: expand on this

Instances

Instances details
FromJSON RemoteArguments Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

ToJSON RemoteArguments Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

HasCodec RemoteArguments Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Generic RemoteArguments Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Associated Types

type Rep RemoteArguments :: Type -> Type #

Show RemoteArguments Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

NFData RemoteArguments Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Methods

rnf :: RemoteArguments -> () #

Eq RemoteArguments Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Hashable RemoteArguments Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

type Rep RemoteArguments Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

type Rep RemoteArguments = D1 ('MetaData "RemoteArguments" "Hasura.RemoteSchema.Metadata.RemoteRelationship" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "RemoteArguments" 'PrefixI 'True) (S1 ('MetaSel ('Just "getRemoteArguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HashMap Name (Value Name)))))

data RemoteSchemaTypeRelationships r Source #

Constructors

RemoteSchemaTypeRelationships 

Fields

Instances

Instances details
FromJSON (RemoteRelationshipG r) => FromJSON (RemoteSchemaTypeRelationships r) Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

ToJSON (RemoteRelationshipG r) => ToJSON (RemoteSchemaTypeRelationships r) Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

(HasCodec (RemoteRelationshipG r), Typeable r) => HasCodec (RemoteSchemaTypeRelationships r) Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Generic (RemoteSchemaTypeRelationships r) Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Associated Types

type Rep (RemoteSchemaTypeRelationships r) :: Type -> Type #

Show r => Show (RemoteSchemaTypeRelationships r) Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

Eq r => Eq (RemoteSchemaTypeRelationships r) Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

type Rep (RemoteSchemaTypeRelationships r) Source # 
Instance details

Defined in Hasura.RemoteSchema.Metadata.RemoteRelationship

rstrsRelationships :: forall r r. Lens (RemoteSchemaTypeRelationships r) (RemoteSchemaTypeRelationships r) (RemoteRelationships r) (RemoteRelationships r) Source #