Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Tools for generating fields for Apollo federation
Synopsis
- data ApolloFederationParserFunction n = ApolloFederationParserFunction {
- aafuGetRootField :: ApolloFederationAnyType -> n (QueryRootField UnpreparedValue)
- convertToApolloFedParserFunc :: (MonadParse n, Backend b) => SourceInfo b -> TableInfo b -> TablePermG b (UnpreparedValue b) -> StringifyNumbers -> Maybe NamingCase -> NESeq (ColumnInfo b) -> Parser 'Output n (AnnotatedFields b) -> Parser 'Output n (ApolloFederationParserFunction n)
- apolloRootFields :: ApolloFederationStatus -> [(Name, Parser 'Output Parse (ApolloFederationParserFunction Parse))] -> [FieldParser Parse (SchemaIntrospection -> QueryRootField UnpreparedValue)]
- getApolloFederationStatus :: HashSet ExperimentalFeature -> Maybe ApolloFederationStatus -> ApolloFederationStatus
- generateSDLWithAllTypes :: SchemaIntrospection -> Text
- generateSDL :: SchemaIntrospection -> Text
Documentation
data ApolloFederationParserFunction n Source #
Internal parser function for entities field
ApolloFederationParserFunction | |
|
convertToApolloFedParserFunc :: (MonadParse n, Backend b) => SourceInfo b -> TableInfo b -> TablePermG b (UnpreparedValue b) -> StringifyNumbers -> Maybe NamingCase -> NESeq (ColumnInfo b) -> Parser 'Output n (AnnotatedFields b) -> Parser 'Output n (ApolloFederationParserFunction n) Source #
apolloRootFields :: ApolloFederationStatus -> [(Name, Parser 'Output Parse (ApolloFederationParserFunction Parse))] -> [FieldParser Parse (SchemaIntrospection -> QueryRootField UnpreparedValue)] Source #
getApolloFederationStatus :: HashSet ExperimentalFeature -> Maybe ApolloFederationStatus -> ApolloFederationStatus Source #
Check if the Apollo Federation feature is enabled or not. If the user has explicitly set the Apollo Federation status, then we use that else we fallback to the experimental feature flag