This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark - Table view data source | |
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ | |
// Return the number of sections. | |
return 1; | |
} | |
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ | |
return objectArray.count; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-02-22T04:00:15.504Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure to use firebase-admin and to initialize the app | |
const admin = require('firebase-admin') | |
admin.initializeApp(functions.config().firebase) | |
// Example of how I'm GETTING all the records in a collection AND using | |
// the ID from the path of the document that triggered this function | |
exports.getLessonsAsync = functions.firestore | |
.document('organizations/{organizationId}/lessons/{lessonId}') | |
.onWrite(async function(change, context) { | |
const result = await admin |