View Source argo_typer_resolver behaviour (argo v1.0.10)

Summary

Types

Callbacks

Link to this callback

find_field_definition/3

View Source (optional)
-callback find_field_definition(TypeDefinition, FieldName, ServiceDocument) -> {ok, FieldDefinition} | error
                         when
                             TypeDefinition :: argo_graphql_type_definition:t(),
                             FieldName :: argo_types:name(),
                             ServiceDocument :: argo_graphql_service_document:t(),
                             FieldDefinition :: argo_graphql_field_definition:t().
Link to this callback

find_type_definition/2

View Source (optional)
-callback find_type_definition(ServiceDocument, TypeName) -> {ok, TypeDefinition} | error
                        when
                            ServiceDocument :: argo_graphql_service_document:t(),
                            TypeName :: argo_types:name(),
                            TypeDefinition :: argo_graphql_type_definition:t().

Functions

Link to this function

find_field_definition(Resolver, TypeDefinition, FieldName, ServiceDocument)

View Source
-spec find_field_definition(Resolver, TypeDefinition, FieldName, ServiceDocument) ->
                         {ok, FieldDefinition} | error
                         when
                             Resolver :: t(),
                             TypeDefinition :: argo_graphql_type_definition:t(),
                             FieldName :: argo_types:name(),
                             ServiceDocument :: argo_graphql_service_document:t(),
                             FieldDefinition :: argo_graphql_field_definition:t().
Link to this function

find_type_definition(Resolver, ServiceDocument, TypeName)

View Source
-spec find_type_definition(Resolver, ServiceDocument, TypeName) -> {ok, TypeDefinition} | error
                        when
                            Resolver :: t(),
                            ServiceDocument :: argo_graphql_service_document:t(),
                            TypeName :: argo_types:name(),
                            TypeDefinition :: argo_graphql_type_definition:t().