弃用 pm2, 使用 systemctl 管理进程
This commit is contained in:
16
README.md
16
README.md
@@ -17,16 +17,16 @@ GraphQL 基本规则
|
||||
// 假设服务器上的数据
|
||||
const database = {
|
||||
users: [
|
||||
{ id: 1, user_name:'xx1', avatar:'xx1.png', create_time:'2022-01-02 12:12:12' }
|
||||
{ id: 2, user_name:'xx2', avatar:'xx2.png', create_time:'2022-01-02 12:12:12' }
|
||||
{ id: 3, user_name:'xx3', avatar:'xx3.png', create_time:'2022-01-02 12:12:12' }
|
||||
{ id: 4, user_name:'xx4', avatar:'xx4.png', create_time:'2022-01-02 12:12:12' }
|
||||
{ id: 1, user_name:'xx1', avatar:'xx1.png', create_time:'2022-01-02 12:12:12' },
|
||||
{ id: 2, user_name:'xx2', avatar:'xx2.png', create_time:'2022-01-02 12:12:12' },
|
||||
{ id: 3, user_name:'xx3', avatar:'xx3.png', create_time:'2022-01-02 12:12:12' },
|
||||
{ id: 4, user_name:'xx4', avatar:'xx4.png', create_time:'2022-01-02 12:12:12' },
|
||||
],
|
||||
images: [
|
||||
{ id: 1, content:'xx1.png', user_id: 1, article_id: 2, text:['xx1'] }
|
||||
{ id: 2, content:'xx2.png', user_id: 1, article_id: 2, text:['xx2'] }
|
||||
{ id: 3, content:'xx3.png', user_id: 2, article_id: 4, text:['xx3'] }
|
||||
{ id: 4, content:'xx4.png', user_id: 2, article_id: 4, text:['xx4'] }
|
||||
{ id: 1, content:'xx1.png', user_id: 1, article_id: 2, text:['xx1'] },
|
||||
{ id: 2, content:'xx2.png', user_id: 1, article_id: 2, text:['xx2'] },
|
||||
{ id: 3, content:'xx3.png', user_id: 2, article_id: 4, text:['xx3'] },
|
||||
{ id: 4, content:'xx4.png', user_id: 2, article_id: 4, text:['xx4'] },
|
||||
]
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user