MCPcopy
hub / github.com/parse-community/parse-server-example / getData

Function getData

public/assets/js/script.js:85–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83};
84
85const getData = async () => {
86 try {
87 const query = new Parse.Query('GameScore');
88 const result = await query.get(Store.objectId);
89
90 closeStep('#step-2');
91 fillStepOutput('#step-2-output', JSON.stringify(result));
92 fillBtn('#step-2-btn', 'Fetched');
93 openStep('#step-3');
94
95 bindBtn('#step-3-btn', async (e) => {
96 e.preventDefault();
97 await postCloudCodeData();
98 });
99 } catch (error) {
100 fillStepError('#step-2-error', `There was a failure: ${error.message}`);
101 }
102};
103
104const postCloudCodeData = async () => {
105 try {

Callers 1

postDataFunction · 0.85

Calls 7

closeStepFunction · 0.85
fillStepOutputFunction · 0.85
fillBtnFunction · 0.85
openStepFunction · 0.85
bindBtnFunction · 0.85
postCloudCodeDataFunction · 0.85
fillStepErrorFunction · 0.85

Tested by

no test coverage detected