Question Details

No question body available.

Tags

javascript sql postgresql graphql firebase-data-connect

Answers (1)

April 15, 2026 Score: 0 Rep: 1 Quality: Low Completeness: 50%

The problem is that execute in Firebase Data Connect only accepts a DML statement(insert, update, delete) Your query is like this:

SELECT id FROM new
recipe;

So this reject with the invalid SQL statement, Data modified CTEs are supported by execute but the final statement has to be inset, update and delete.

This pattern here is valid I believe:

WITH ensure
user AS ( INSERT INTO "User" (id, displayName) VALUES ($2, null) ON CONFLICT (id) DO NOTHING ) INSERT INTO Recipe ( title, authorId, subtitle, description, foodTypes, imageUrl, estimatedMinutes, isTest ) VALUES ($1,$2,$3,$4,$5,$6,$7,$8);