File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,18 @@ - (FIRDocumentReference *)documentWithPath:(NSString *)documentPath {
204
204
return [[FIRDocumentReference alloc ] initWithReference: std: :move (documentReference)];
205
205
}
206
206
207
+ - (FIRQuery *)collectionGroupWithID : (NSString *)collectionID {
208
+ if (!collectionID) {
209
+ ThrowInvalidArgument (" Collection ID cannot be nil." );
210
+ }
211
+ if ([collectionID containsString: @" /" ]) {
212
+ ThrowInvalidArgument (" Invalid collection ID (%s). Collection IDs must not contain / in them." ,
213
+ collectionID);
214
+ }
215
+
216
+ return _firestore->GetCollectionGroup (collectionID);
217
+ }
218
+
207
219
- (FIRWriteBatch *)batch {
208
220
return _firestore->GetBatch ();
209
221
}
@@ -273,18 +285,6 @@ + (FIRFirestore *)recoverFromFirestore:(Firestore *)firestore {
273
285
return (__bridge FIRFirestore *)firestore->extension ();
274
286
}
275
287
276
- - (FIRQuery *)collectionGroupWithID : (NSString *)collectionID {
277
- if (!collectionID) {
278
- ThrowInvalidArgument (" Collection ID cannot be nil." );
279
- }
280
- if ([collectionID containsString: @" /" ]) {
281
- ThrowInvalidArgument (" Invalid collection ID (%s). Collection IDs must not contain / in them." ,
282
- collectionID);
283
- }
284
-
285
- return _firestore->GetCollectionGroup (collectionID);
286
- }
287
-
288
288
- (void )shutdownWithCompletion : (nullable void (^)(NSError *_Nullable error))completion {
289
289
_firestore->Shutdown (completion);
290
290
}
You can’t perform that action at this time.
0 commit comments