Documentation
¶
Index ¶
- func New(s data.Store) data.Query
- func NewIndirectionResolver(entityManager data.EntityManager, fieldOperator data.FieldOperator) data.IndirectionResolver
- type Condition
- type Field
- func (f *Field) Contains(value any) data.Query
- func (f *Field) Equals(value any) data.Query
- func (f *Field) GreaterThan(value any) data.Query
- func (f *Field) GreaterThanOrEqual(value any) data.Query
- func (f *Field) LessThan(value any) data.Query
- func (f *Field) LessThanOrEqual(value any) data.Query
- func (f *Field) NotContains(value any) data.Query
- func (f *Field) NotEquals(value any) data.Query
- type IndirectionResolver
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIndirectionResolver ¶ added in v0.1.2
func NewIndirectionResolver(entityManager data.EntityManager, fieldOperator data.FieldOperator) data.IndirectionResolver
Types ¶
type IndirectionResolver ¶ added in v0.1.2
type IndirectionResolver struct {
// contains filtered or unexported fields
}
func (*IndirectionResolver) Resolve ¶ added in v0.1.2
func (me *IndirectionResolver) Resolve(ctx context.Context, entityId, indirectField string) (string, string)
Examples or indirections 1. EntityReference1->EntityReference2->EntityReference3->Field 2. EntityList1->0->EntityReference1->Field 3. Parent->Field // Parent is an EntityReference type field 4. Children->0->Field // Children is an EntityList type field
Click to show internal directories.
Click to hide internal directories.