Documentation
¶
Overview ¶
Package selections is for internal use to share selection context between the execution engine and the public graphql package without creating an import cycle.
The execution layer stores the flattened child selection set for the field currently being resolved. The public API converts this into user-friendly helpers (SelectedFieldNames, etc.).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Lazy ¶
type Lazy struct {
// contains filtered or unexported fields
}
Lazy holds raw selections and computes the flattened, deduped name list once on demand.
func FromContext ¶
FromContext retrieves the lazy wrapper (may be nil).
Click to show internal directories.
Click to hide internal directories.