Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct { Node SearchNode Rank int }
type SearchFilter ¶
type SearchFilter struct { Query string `json:"query"` Type *SearchType `json:"type,omitempty"` }
type SearchNode ¶
type SearchNode interface {
IsSearchNode()
}
type SearchNodeConnection ¶
type SearchNodeConnection = pagination.Connection[SearchNode]
func Search ¶
func Search(ctx context.Context, page *pagination.Pagination, filter SearchFilter) (*SearchNodeConnection, error)
type SearchNodeEdge ¶
type SearchNodeEdge = pagination.Edge[SearchNode]
type SearchType ¶
type SearchType string
func (SearchType) MarshalGQL ¶
func (e SearchType) MarshalGQL(w io.Writer)
func (SearchType) String ¶
func (e SearchType) String() string
func (*SearchType) UnmarshalGQL ¶
func (e *SearchType) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.