Current version of Amplify has some limits when it...
# random
a
Current version of Amplify has some limits when it comes to number of types that you are able to deploy? In my experience having more than 7 types results in "template may not exceed 460800 bytes in size" error. Is there any similar limit in graphqlgen?
h
I think you mean prisma not graphqlgen. We have no such limit
👍 1
a
what about prisma then?
h
I am answering for prisma only.
Graphqlgen is completely different thing
It is a tool that generate types for your resolvers
a
how do I generate the actual resolvers ?
h
graphqlgen also scaffolds the resolvers
just copy and paste 🙂
a
does it also generate sql ddl for MySql or Postgres?
h
what do you mean by
sql ddl
? 🤔
a
data definiton language, basically create table statements and such
h
You will require to manually write the prisma datamodel. Also, graphqlgen is independent of prisma. I think you have a look first. Here is a quick video for you:

https://www.youtube.com/watch?v=6ZSF60zVFowâ–ľ

a
Ok, I see, thanks a lot. Can Prisma generate the physical datamodel, from GraphQL schema or is it alwasy manual process?
h
you can generate a graphql schema from a prisma datamodel. It is kinda opposite
also prisma datamodel uses graphql SDL so it is very familiar
a
ok so providing graphql SDL to prisma generates both GraphQL schema and physical MySql schema?
h
yes
a
great, thanks a lot:)
h
you run prisma deploy and we makes all changes in the underlying database according to the SDL
a
ok, but then we still have to take care of data migration?
m
You can modify your database directly and use
prisma introspect
to update your schema DDL, and then deploy it. Or you can use allow migrations in
docker-compose.yml
file and do it in the opposite way, modify your schema first and allow migrations so it's going to modify your database when you deploy it.
a
I understand, thank you.