Query by regex not working in transaction

why do you need to query with Regex in the same transaction?

I’m just trying to understand how Dgraph transactions work, and I provided this example because it surprised me.

I’m coming from relational databases like PostgreSQL and Microsoft SQL where both the data and the index are updated immediately for the current the transaction. So if you start a transaction, then insert, then query based on an index, the query result can contain what you just inserted.

I guess Dgraph just doesn’t support this.