Tnx not defined while doing `tnx.commit()` using dgraphjs

Never mind I was writing txn instead of tnx.