-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gen 1 to Gen 2 Migration - Schema Usage #3102
Comments
However, if you recreate your app in Gen 2 your data will not be copied over automatically and you will need to implement your own replication if you go this route. We are planning to release official migration support in the future that will replicate your data in the Gen 2 app automatically. |
Thank you for the clarfication. I also want to know about the filed level querying in gen 2. Example : I have a model Tenant in gen 1 with the field logoImage how to achieve this in gen 2. type Tenant
[allow.groupDefinedIn("id")])).handler(a.handler.custom({ entry: "../resolvers/tenant/logo-image.ts", dataSource:
|
Amplify CLI Version
v12.13.1
Question
I want to migrate my Gen 1 app to a Gen 2 app, and I wish to reuse my existing Gen 1 GraphQL Schema (SDL) in Gen 2 . My Gen 1 schema includes features such as @model queries, mutations, subscriptions, directives like @hasone, @hasmany, and @belongsTo on required fields, as well as many-to-many relationships. However, according to the Gen 2 documentation and the Gen 1 vs. Gen 2 feature matrix, these features are not supported in Gen 2.
My questions are:
Is there any way to combine both Gen 1 and Gen 2 schemas to make them usable in Gen 2?
What alternative approaches are available to implement the above features in Gen 2?
Documents referred :
Gen 1 schema support: https://docs.amplify.aws/react/build-a-backend/data/data-modeling/#gen-1-schema-support
Gen 1 vs. Gen 2 feature matrix : https://docs.amplify.aws/react/start/migrate-to-gen2/#gen-1-vs-gen-2-feature-matrix
The text was updated successfully, but these errors were encountered: