Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.7k views
in Technique[技术] by (71.8m points)

mongodb - mongo error when trying to import javascript (OS: ubuntu server)

I am trying to import this

db.ranks.save({
    "rankid": "Owner",
    "displayName": "Owner",
    "generalWeight": 1,
    "displayWeight": 1,
    "gameColor": "§7",
    "gamePrefix": "prefix",
    "staffRank": false,
    "grantRequiresTotp": false,
    "queueMessage": "a"

})

and i get this error

2021-01-23T01:52:31.994+0000 E QUERY [thread1] [/mongo/rank.js:4:4] SyntaxError: missing } after property list Stack trace: @(shell):1:1

2021-01-23T01:52:31.994+0000 E QUERY [thread1] Error: error loading js file: /mongo/rank.js @(shell):1:1

please help (i am new to mongo)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...