Groups
Groups
Sign in
Groups
Groups
Milkcocoa
Conversations
About
Send feedback
Help
データストアを初期化する方法はありませんか?
149 views
Skip to first unread message
荒井和平
unread,
Aug 16, 2014, 7:37:43 AM
8/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mlk...@googlegroups.com
開発中にいらないデータが沢山たまってしまいました。
ドキュメントを見るとIdで指定したデータのremoveしか見つかりませんが、
データソースの指定したパス以下全消去などする方法はないでしょうか?
Shogo Ochiai
unread,
Aug 16, 2014, 11:48:56 AM
8/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mlk...@googlegroups.com
グロースエンジニアの落合です!
グループでの回答を担当させていただきますのでよろしくお願いします。
現在のJavaScriptsAPIにはデータストア内の全データ、あるいはデータストアごと削除する関数をご用意しておりません。
お手数をおかけしますが、dataStore.query関数で該当するデータオブジェクトのあるいはオブジェクトの配列を取得し、イテレーターの中でremove関数にデータのidを渡して削除するようにしていただけますでしょうか。
追ってAPIを追加した再には、ドキュメントの修正とサイトでの通知をさせていただきます。
荒井様がmilkcocoaで誰よりも早く新規なプロダクトを作れるお手伝いをさせて頂きたく思うので、
お力になれることがあればまたぜひご質問ご提案いただければ幸いです。
Reply all
Reply to author
Forward
0 new messages