{"id":"cd2068604933e507","repo":"drizzle-team/drizzle-orm","slug":"cannot-use-concurrently-and-withnodata-together","errorCode":null,"errorMessage":"Cannot use concurrently and withNoData together","messagePattern":"Cannot use concurrently and withNoData together","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"drizzle-orm/src/gel-core/query-builders/refresh-materialized-view.ts","lineNumber":52,"sourceCode":"\n\tprivate config: {\n\t\tview: GelMaterializedView;\n\t\tconcurrently?: boolean;\n\t\twithNoData?: boolean;\n\t};\n\n\tconstructor(\n\t\tview: GelMaterializedView,\n\t\tprivate session: GelSession,\n\t\tprivate dialect: GelDialect,\n\t) {\n\t\tsuper();\n\t\tthis.config = { view };\n\t}\n\n\tconcurrently(): this {\n\t\tif (this.config.withNoData !== undefined) {\n\t\t\tthrow new Error('Cannot use concurrently and withNoData together');\n\t\t}\n\t\tthis.config.concurrently = true;\n\t\treturn this;\n\t}\n\n\twithNoData(): this {\n\t\tif (this.config.concurrently !== undefined) {\n\t\t\tthrow new Error('Cannot use concurrently and withNoData together');\n\t\t}\n\t\tthis.config.withNoData = true;\n\t\treturn this;\n\t}\n\n\t/** @internal */\n\tgetSQL(): SQL {\n\t\treturn this.dialect.buildRefreshMaterializedViewQuery(this.config);\n\t}\n","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/drizzle-team/drizzle-orm/blob/b7862528fd8fc39bc2653a6c18dad7c1f4e68d10/drizzle-orm/src/gel-core/query-builders/refresh-materialized-view.ts#L34-L70","documentation":"Error \"Cannot use concurrently and withNoData together\" thrown in drizzle-team/drizzle-orm.","triggerScenarios":"Calling refreshMaterializedView().concurrently().withNoData() on Gel — the two options are mutually exclusive.","commonSituations":"Copy-pasted refresh options; config object enabling both flags.","solutions":["Choose only one option: either .concurrently() or .withNoData(), not both, when refreshing the materialized view."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"b7862528fd8fc39bc2653a6c18dad7c1f4e68d10","analyzedAt":"2026-08-03T18:11:14.318Z","schemaVersion":2}