func (s *Scoped) FetchOneLocal(ctx context.Context) *FetchResult {
	// If there is no parent, this is just the relation
	if s.parent == nil {
		return &FetchResult{Field: s.field, Value: ValueRelation(s.field), ValueExists: true}
	}
	r := &FetchResult{Field: s.field}
	// Need parent soul for lookup
	var parentSoul string
	if parentSoul, r.Err = s.parent.Soul(ctx); r.Err == nil {
		if r.Value, r.State, r.Err = s.gun.storage.Get(ctx, parentSoul, s.field); r.Err == ErrStorageNotFound {
			r.Err = nil
		} else if r.Err == nil {
			r.ValueExists = true
		}
	}
	return r
}
// FetchOneLocal gets a local value from storage. For top-level fields, it
// simply returns the field name as a relation.
FetchOneLocal gets a local value from storage. For top-level fields, it
simply returns the field name as a relation.
// FetchOneLocal gets a local value from storage . For top - level fields it // simply returns the field name as a relation .
func (s *Scoped) FetchOneLocal(ctx context.Context) *FetchResult {
	if s.parent == nil {
		return &FetchResult{Field: s.field, Value: ValueRelation(s.field), ValueExists: true}
	}
	r := &FetchResult{Field: s.field}
	var parentSoul string
	if parentSoul, r.Err = s.parent.Soul(ctx); r.Err == nil {
		if r.Value, r.State, r.Err = s.gun.storage.Get(ctx, parentSoul, s.field); r.Err == ErrStorageNotFound {
			r.Err = nil
		} else if r.Err == nil {
			r.ValueExists = true
		}
	}
	return r
}
func ( s * Scoped ) FetchOneLocal ( ctx context . Context ) * FetchResult { if s . parent == nil { return & FetchResult { Field : s . field , Value : ValueRelation ( s . field ) , ValueExists : true } } r := & FetchResult { Field : s . field } var parentSoul string if parentSoul , r . Err = s . parent . Soul ( ctx ) ; r . Err == nil { if r . Value , r . State , r . Err = s . gun . storage . Get ( ctx , parentSoul , s . field ) ; r . Err == ErrStorageNotFound { r . Err = nil } else if r . Err == nil { r . ValueExists = true } } return r }
FetchOneLocal gets a local value from storage.
FetchOneLocal gets a local value from storage .
// If there is no parent, this is just the relation // Need parent soul for lookup