[Convex Ents] ctx in mutation does not have a runMutation or runQuery function

Hi, I currently have my mutation defined as:

export const mutation = customMutation(
  baseMutation,
  customCtx(async (ctx) => {
    return {
      table: entsTableFactory(ctx, entDefinitions),
      db: undefined,
    };
  }),
);


and the ctx object of this does not have a function called runMutation or runQuery to call a internal mutation or query as defined here: https://docs.convex.dev/functions/internal-functions#calling-internal-functions
Internal functions can only be called by other functions
Internal Functions | Convex Developer Hub
Was this page helpful?