You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* An interface to read from and write to the database within Convex mutation
@@ -152,7 +146,7 @@ export type DatabaseReader = GenericDatabaseReaderWithTable<DataModel>;
152
146
* your data in an inconsistent state. See [the Convex Guide](https://docs.convex.dev/understanding/convex-fundamentals/functions#atomicity-and-optimistic-concurrency-control)
153
147
* for the guarantees Convex provides your functions.
* An interface to read from and write to the database within Convex mutation
@@ -152,7 +146,7 @@ export type DatabaseReader = GenericDatabaseReaderWithTable<DataModel>;
152
146
* your data in an inconsistent state. See [the Convex Guide](https://docs.convex.dev/understanding/convex-fundamentals/functions#atomicity-and-optimistic-concurrency-control)
153
147
* for the guarantees Convex provides your functions.
* Define an action in this Convex app's public API.
@@ -222,15 +223,15 @@ function componentServerDTSPrelude(): string {
222
223
* This differs from the {@link MutationCtx} because all of the services are
223
224
* read-only.
224
225
*/
225
-
export type QueryCtx = GenericQueryCtxWithTable<DataModel>;
226
+
export type QueryCtx = GenericQueryCtx${withTable}<DataModel>;
226
227
227
228
/**
228
229
* A set of services for use within Convex mutation functions.
229
230
*
230
231
* The mutation context is passed as the first argument to any Convex mutation
231
232
* function run on the server.
232
233
*/
233
-
export type MutationCtx = GenericMutationCtxWithTable<DataModel>;
234
+
export type MutationCtx = GenericMutationCtx${withTable}<DataModel>;
234
235
235
236
/**
236
237
* A set of services for use within Convex action functions.
@@ -247,7 +248,7 @@ function componentServerDTSPrelude(): string {
247
248
* document by its {@link Id}, or {@link DatabaseReader.query}, which starts
248
249
* building a query.
249
250
*/
250
-
export type DatabaseReader = GenericDatabaseReaderWithTable<DataModel>;
251
+
export type DatabaseReader = GenericDatabaseReader${withTable}<DataModel>;
251
252
252
253
/**
253
254
* An interface to read from and write to the database within Convex mutation
@@ -258,12 +259,12 @@ function componentServerDTSPrelude(): string {
258
259
* your data in an inconsistent state. See [the Convex Guide](https://docs.convex.dev/understanding/convex-fundamentals/functions#atomicity-and-optimistic-concurrency-control)
259
260
* for the guarantees Convex provides your functions.
260
261
*/
261
-
export type DatabaseWriter = GenericDatabaseWriterWithTable<DataModel>;
262
+
export type DatabaseWriter = GenericDatabaseWriter${withTable}<DataModel>;
0 commit comments