Skip to content

react-query-firebase / web/firestore / UseAddDocMutationOptions

Type Alias: UseAddDocMutationOptions<AppModelType, TContext>

ts
type UseAddDocMutationOptions<AppModelType, TContext> = object;

Defined in: web/firestore/useAddDocMutation.ts:21

Type Parameters

AppModelType

AppModelType extends AppModel = AppModel

TContext

TContext = unknown

Properties

collectionReference

ts
collectionReference: CollectionReference<AppModelType, AppModelType>;

Defined in: 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: web/firestore/useAddDocMutation.ts:29

Options for useMutation hook excluding mutationFn. MutationKey will be equal to reference.path by default.

Released under the MIT License.