Documentation ¶
Index ¶
- func GraphqlAll[V any](pq pgxscan.Queryer, query QueryResolver) graphql.FieldResolveFn
- func GraphqlOne[V any](pq pgxscan.Queryer, query QueryResolver) graphql.FieldResolveFn
- func NewListLoader[K comparable, V any](pq pgxscan.Queryer, indexer func(V) K, query string) *dataloader.Loader[K, []V]
- func NewLoader[K comparable, V any](pq pgxscan.Queryer, indexer func(V) K, query string) *dataloader.Loader[K, V]
- type QueryResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GraphqlAll ¶
func GraphqlAll[V any](pq pgxscan.Queryer, query QueryResolver) graphql.FieldResolveFn
func GraphqlOne ¶
func GraphqlOne[V any](pq pgxscan.Queryer, query QueryResolver) graphql.FieldResolveFn
func NewListLoader ¶
func NewListLoader[K comparable, V any](pq pgxscan.Queryer, indexer func(V) K, query string) *dataloader.Loader[K, []V]
Types ¶
type QueryResolver ¶
type QueryResolver func(graphql.ResolveParams) (string, []any)
Click to show internal directories.
Click to hide internal directories.