drizzle-team/drizzle-orm · error · Error
Cannot use concurrently and withNoData together
Error message
Cannot use concurrently and withNoData together
What it means
Error "Cannot use concurrently and withNoData together" thrown in drizzle-team/drizzle-orm.
Source
Thrown at drizzle-orm/src/gel-core/query-builders/refresh-materialized-view.ts:52
private config: {
view: GelMaterializedView;
concurrently?: boolean;
withNoData?: boolean;
};
constructor(
view: GelMaterializedView,
private session: GelSession,
private dialect: GelDialect,
) {
super();
this.config = { view };
}
concurrently(): this {
if (this.config.withNoData !== undefined) {
throw new Error('Cannot use concurrently and withNoData together');
}
this.config.concurrently = true;
return this;
}
withNoData(): this {
if (this.config.concurrently !== undefined) {
throw new Error('Cannot use concurrently and withNoData together');
}
this.config.withNoData = true;
return this;
}
/** @internal */
getSQL(): SQL {
return this.dialect.buildRefreshMaterializedViewQuery(this.config);
}
View on GitHub (pinned to b7862528fd)
Solutions
- Choose only one option: either .concurrently() or .withNoData(), not both, when refreshing the materialized view.
When it happens
Trigger: Calling refreshMaterializedView().concurrently().withNoData() on Gel — the two options are mutually exclusive.
Common situations: Copy-pasted refresh options; config object enabling both flags.
AI-assisted analysis of drizzle-team/drizzle-orm@b7862528fd (2026-08-03).
Data as JSON: /data/errors/cd2068604933e507.json.
Report an issue: GitHub.