func (s *Scoped) FetchOne(ctx context.Context) *FetchResult {
	// Try local before remote
	if r := s.FetchOneLocal(ctx); r.Err != nil || r.ValueExists {
		return r
	}
	return s.FetchOneRemote(ctx)
}
// FetchOne fetches a single result, trying local first. It is a shortcut for
// calling FetchOneLocal and if it doesn't exist falling back to FetchOneRemote.
// This should not be called on a top-level field. The context can be used to
// timeout the wait.
//
// This is the equivalent of the Gun JS API "once" function.
FetchOne fetches a single result, trying local first. It is a shortcut for
calling FetchOneLocal and if it doesn't exist falling back to FetchOneRemote.
This should not be called on a top-level field. The context can be used to
timeout the wait.

This is the equivalent of the Gun JS API "once" function.
// FetchOne fetches a single result trying local first . It is a shortcut for // calling FetchOneLocal and if it doesn ' t exist falling back to FetchOneRemote . // This should not be called on a top - level field . The context can be used to // timeout the wait . // // This is the equivalent of the Gun JS API " once " function .
func (s *Scoped) FetchOne(ctx context.Context) *FetchResult {
	if r := s.FetchOneLocal(ctx); r.Err != nil || r.ValueExists {
		return r
	}
	return s.FetchOneRemote(ctx)
}
func ( s * Scoped ) FetchOne ( ctx context . Context ) * FetchResult { if r := s . FetchOneLocal ( ctx ) ; r . Err != nil || r . ValueExists { return r } return s . FetchOneRemote ( ctx ) }
FetchOne fetches a single result, trying local first.
FetchOne fetches a single result trying local first .
// Try local before remote