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