question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to import field nested timestamp 2 level in import?

See original GitHub issue

Hi, i’m trying to import a JSON with field nested timestamp 2 level, but i don’t know how to do it. Sample bellow with 3 field: date, date1, date2

Please, Help for me! Thanks!

{
  "test": {
    "first-key": {
      "website": "dalenguyen.me",
      "array": ["1", "2", "3"],
      "date": {
        "_seconds": 1534046400,
        "_nanoseconds": 0
      },
      "custom": {
        "lastName": "Nguyen",
        "firstName": "Dale"
      },
      "location": {
        "_latitude": 49.290683,
        "_longitude": -123.133956
      },
      "email": "dungnq@itbox4vn.com",
      "author" : {
        "name": "dalenguyen.me",
        "date1": {
          "_seconds": 1534046400,
          "_nanoseconds": 0
        }
      },
      "subCollection": {
        "test/first-key/details": {
          "33J2A10u5902CXagoBP6": {
            "dogId": "2",
            "dogName": "hello",
            "date2": {
              "_seconds": 1534046400,
              "_nanoseconds": 0
            }
          },
          "MSZTWEP7Lewx0Qr1Mu5s": {
            "dogName": "lala",
            "dogId": "2",
            "date2": {
              "_seconds": 1534046400,
              "_nanoseconds": 0
            }
          }
        }
      }
    }
  }
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sueboy19commented, Apr 6, 2020

Thank you very much. New version key “dates” can success.

0reactions
dalenguyencommented, Apr 6, 2020

Hi @sueboy19. There was a breaking change few releases ago. The time is moved to options. You can reference the readme.md file for new changes.

firestoreService.restore('your-file-path.json', {
  dates: ['date1', 'date1.date2', 'date1.date2.date3'],
  geos: ['location', 'locations'],
  refs: ['refKey', 'arrayRef'],
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

Importing Nested Tables - Oracle Help Center
Suppose a table with an inner nested table is exported and then imported without dropping the table or removing rows from the table....
Read more >
Uploading Structured Data Store Data with the Data Import ...
The Data Import Handler (DIH) provides a mechanism for importing content ... nested XpathEntity; the field in the parent which is to be...
Read more >
Convert Nested Json to CSV Python - Stack Overflow
import pandas as pd import json with open('read.json') as f_input: ... to be the timestamp and the machines change the last two rows...
Read more >
complex-nested-structured - Databricks documentation
Printing the schema atests to two columns of type integer and string , reflecting the Scala case class.
Read more >
Querying nested and repeated fields in legacy SQL | BigQuery
BigQuery supports loading and exporting nested and repeated data in the form ... This matches with our WITHIN RECORD query results; John Doe...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found