We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90bf0fd commit 2b499b6Copy full SHA for 2b499b6
src/init/features/dataconnect/index.ts
@@ -147,8 +147,8 @@ export async function actuate(setup: Setup, config: Config): Promise<void> {
147
info.cloudSqlInstanceId || `${info.serviceId.toLowerCase() || "app"}-fdc`;
148
info.locationId = info.locationId || `us-central1`;
149
info.cloudSqlDatabase = info.cloudSqlDatabase || `fdcdb`;
150
- // Make sure to add add some GQL files.
151
- // Use the template if the existing service is empty (no schema / connector GQL).
+ // Make sure to add some GQL files.
+ // Use the template if it starts from scratch or the existing service has no GQL source.
152
if (!info.schemaGql.length && !info.connectors.flatMap((r) => r.files).length) {
153
info.schemaGql = [defaultSchema];
154
info.connectors = [defaultConnector];
0 commit comments