Documentation ¶
Index ¶
- func FlamingoResolver(_ context.Context) (*string, error)
- func Generate(services []Service, basePath string, schemaBasePath string) error
- func MarshalDate(t time.Time) graphql.Marshaler
- func MarshalFloat(f big.Float) graphql.Marshaler
- func UnmarshalDate(v interface{}) (time.Time, error)
- func UnmarshalFloat(v interface{}) (big.Float, error)
- type FlamingoQueryResolver
- type Module
- type Service
- type Types
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlamingoResolver ¶
FlamingoResolver always returns "flamingo" for default schemas.
func Generate ¶
Generate runs the graphql generation for the defined services Usually you won't need this, and it's intended for infrastructure implementations.
func MarshalDate ¶ added in v1.2.0
MarshalDate marshals time.Time inf form of YYYY-MM-DD
func MarshalFloat ¶
MarshalFloat for graphql Float scalars to be compatible with big.Float
func UnmarshalDate ¶ added in v1.2.0
UnmarshalDate unmarshalls YYYY-MM-DD to time.Time
func UnmarshalFloat ¶
UnmarshalFloat for graphql Float scalars to be compatible with big.Float
Types ¶
type FlamingoQueryResolver ¶
type FlamingoQueryResolver struct{}
FlamingoQueryResolver always resolves to the string "flamingo" for the default schemas.
type Module ¶
type Module struct{}
Module defines the graphql entry point and binds the graphql command and routes
type Service ¶
Service defines the interface for graphql services The Schema returns the GraphQL Schema definition The Types configure the GraphQL type mapping and resolution
type Types ¶ added in v1.1.0
type Types struct {
// contains filtered or unexported fields
}
Types represent information on Object->Go type mappings and resolvers
func (*Types) GoField ¶ added in v1.1.0
GoField sets a map to find the correct go field of an object