未验证 提交 c2573b6b 编写于 作者: A Avi Aryan

improve doc for chaning namespace #65

上级 373c9759
......@@ -38,15 +38,18 @@ goja({"filename": "/path/to/transform.js"})
// js({"filename": "/path/to/transform.js"})
```
### example
### example (add columns, change namespace)
message in
```js
{
"_id": 0,
"name": "abc",
"type": "software"
"ns": "old_namespace",
"data": {
"_id": 0,
"name": "abc",
"type": "software"
}
}
```
......@@ -70,10 +73,13 @@ message out
```js
{
"_id": 0,
"name": "abc",
"type": "software",
"name_type": "abc software"
"ns": "items",
"data": {
"_id": 0,
"name": "abc",
"type": "software",
"name_type": "abc software"
}
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册