func (d *DGraphAccess) ForReadOnly(ctx context.Context) *DGraphAccess {
	return &DGraphAccess{
		client:       d.client,
		txn:          d.client.NewReadOnlyTxn(),
		ctx:          ctx,
		traceEnabled: d.traceEnabled,
	}
}
// ForReadOnly returns a copy of DGraphAccess ready to perform read operations only.
ForReadOnly returns a copy of DGraphAccess ready to perform read operations only.
// ForReadOnly returns a copy of DGraphAccess ready to perform read operations only .
func (d *DGraphAccess) ForReadOnly(ctx context.Context) *DGraphAccess {
	return &DGraphAccess{
		client:       d.client,
		txn:          d.client.NewReadOnlyTxn(),
		ctx:          ctx,
		traceEnabled: d.traceEnabled,
	}
}
func ( d * DGraphAccess ) ForReadOnly ( ctx context . Context ) * DGraphAccess { return & DGraphAccess { client : d . client , txn : d . client . NewReadOnlyTxn ( ) , ctx : ctx , traceEnabled : d . traceEnabled , } }
ForReadOnly returns a copy of DGraphAccess ready to perform read operations only.
ForReadOnly returns a copy of DGraphAccess ready to perform read operations only .