Prisma1: Import support for various data sources

Created on 18 Dec 2017  Â·  4Comments  Â·  Source: prisma/prisma1

Importing data into Graphcool requires two major steps:

  1. transforming data to be imported into the normalized data format
  2. uploading data to Graphcool
+--------------+                   +----------------+                 +------------+
| +--------------+                 |                |                 |            |
| |            | |                 |                |                 |            |
| | SQL        | |   transform     |      NDF       | chunked upload  |  Graphcool |
| | MongoDB    | | +----------->   |                | +-------------> |            |
| | JSON       | |                 |                |                 |            |
| |            | |                 |                |                 |            |
+--------------+ |                 +----------------+                 +------------+
  +--------------+

As of today, the transform step needs to be done manually by the developer. However, in the future, an automatic transformation from various data sources will be implemented for the Graphcool CLI's graphcool import command.

In this issue, you can keep track and vote of the different source mappers that will be available.

To vote for a specific source mapper, just click on it in the poll below:






The poll is powered by the awesome GitHub polls

statustale

Most helpful comment

Any update on this?

All 4 comments

Any update on this?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

Has there ever something grown out of this?

This is such important feature and now I see this,

prisma export
Warning: The `prisma export` command will not be further developed in the future. Please use the native export features of your database for these workflows. 

More info here:
MySQL: https://dev.mysql.com/doc/refman/5.7/en/mysqlimport.html 
Postgres: https://www.postgresql.org/docs/10/app-pgrestore.html

Downloading nodes 1535ms
Downloading lists 120ms
Downloading relations 1349ms
Zipping export... â¡¿
Zipping export 298ms

And the import says,

prisma import --data ~/backup.zip
Warning: The `prisma import` command will not be further developed in the future. Please use the native import features of your database for these workflows. 

More info here:
MySQL: https://dev.mysql.com/doc/refman/5.7/en/mysqlimport.html
Postgres: https://www.postgresql.org/docs/10/app-pgrestore.html

Unzipping 136ms
Validating data 821ms

This is so misleading feature. On the document it says, it'll be developed further, but on the console it says it won't be developed anymore.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schickling picture schickling  Â·  36Comments

marktani picture marktani  Â·  71Comments

pantharshit00 picture pantharshit00  Â·  49Comments

marktani picture marktani  Â·  44Comments

marticrespi picture marticrespi  Â·  34Comments