How to create a Firestore collection/document?

I am trying to create a document using Firestore nod in n8n.
Any hints please on how to create a document like:
{
name: “user1”
location:“location1”
}

The screen capture suggests that I enter columns and attributes parameter.
I am not sure how to pass it on

Thanks for your hints

Hey @Pavan_Mirla!

Welcome to the n8n community!

Are you getting this data from anywhere? If not you use the SET node to set the data. Connect your Firestore node to the Set node and in the Columns field enter name, location. Here is an example, that might help. (You can copy and paste it in n8n)

{
  "nodes": [
    {
      "parameters": {
        "operation": "create",
        "columns": "name, location"
      },
      "name": "Google Cloud Firestore",
      "type": "n8n-nodes-base.googleFirebaseCloudFirestore",
      "typeVersion": 1,
      "position": [
        650,
        300
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "name",
              "value": "user1"
            },
            {
              "name": "location",
              "value": "location1"
            }
          ]
        },
        "options": {}
      },
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    }
  ],
  "connections": {
    "Set": {
      "main": [
        [
          {
            "node": "Google Cloud Firestore",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
1 Like

Thank you @harshil1712
This answered my question . I am not ingesting data from anywhere yet.Just experimenting with n8n nodes.

I am glad this answered your question. Feel free to ask any questions you might have :slightly_smiling_face: