firebase-tools: v14.4.0
node: v20.19.1
Data Connect VS Code extension: v1.4.0
- Run
Start emulatorsusing the Data Connect VS Code extension - Goto
dataconnect/connector/queries.gql, and runListEverythingquery locally verify that no data is present. Clear data if ever.- Results
{
"productCategories": [],
"productTags": [],
"products": []
}- Goto
dataconnect/ProductTag_insert.gql, and run the mutation locally to insert a product tag- Results
{
"productTag_insert": {
"id": "ptid-00000"
}
}- (optional) Goto
dataconnect/connector/queries.gql, and runListEverythingquery locally verify that a product tag was created- Results
{
"productCategories": [],
"productTags": [
{
"id": "ptid-00000",
"productId": "pid-00000"
}
],
"products": []
}- Goto
dataconnect/connector/mutations.gql, and runExamplemutation with vaiables below- Variables
{
"id": "pid-00000"
}Results should show
{
"productCategory_insertMany": [
{
"id": "c27690a7a8964b68a9e455970b56e8b8"
}
],
"productTag_deleteMany": 1,
"product_upsert": {
"id": "pid-00000"
}
}Running the ListEverything query in dataconnect/connector/queries.gql shows
{
"productCategories": [
{
"categoryCode": "ABC123",
"id": "c27690a7a8964b68a9e455970b56e8b8",
"productId": "pid-00000"
}
],
"productTags": [],
"products": [
{
"active": true,
"createdAt": "2025-05-27T10:00:00.000000Z",
"id": "pid-00000",
"metadataStatus": "Draft",
"name": "Dummy Product",
"type": "DIGITAL",
"updatedAt": "2025-05-27T10:00:00.000000Z"
}
]
}Error is raised cannot commit transaction: pq: unexpected transaction status idle although results show that the operations were successful
Notes: this is pretty much the same as the expected behavior just with errors.
{
"productCategory_insertMany": [
{
"id": "0e31a079c3b346e8ae361d50e1df28d8"
}
],
"productTag_deleteMany": 1,
"product_upsert": {
"id": "pid-00000"
}
}Running the ListEverything query in dataconnect/connector/queries.gql shows
{
"productCategories": [
{
"categoryCode": "ABC123",
"id": "c27690a7a8964b68a9e455970b56e8b8",
"productId": "pid-00000"
}
],
"productTags": [],
"products": [
{
"active": true,
"createdAt": "2025-05-27T10:00:00.000000Z",
"id": "pid-00000",
"metadataStatus": "Draft",
"name": "Dummy Product",
"type": "DIGITAL",
"updatedAt": "2025-05-27T10:00:00.000000Z"
}
]
}Running the same mutation on production works without any issues
