react-query-firebase / react-native/firestore / UseAddDocMutationOptions
Type Alias: UseAddDocMutationOptions<AppModelType, TContext>
ts
type UseAddDocMutationOptions<AppModelType, TContext> = object;
Defined in: react-native/firestore/useAddDocMutation.ts:21
Type Parameters
AppModelType
AppModelType
extends AppModel
= AppModel
TContext
TContext
= unknown
Properties
collectionReference
ts
collectionReference: FirebaseFirestoreTypes.CollectionReference<AppModelType>;
Defined in: react-native/firestore/useAddDocMutation.ts:25
Reference to a collection where document must be added
options?
ts
optional options: Omit<UseMutationOptions<AppModelType, ReactNativeFirebase.NativeFirebaseError, UseAddDocMutationValues<AppModelType>, TContext>, "mutationFn">;
Defined in: react-native/firestore/useAddDocMutation.ts:30
Options for useMutation hook excluding mutationFn. MutationKey will be equal to reference.path by default.