Sequelize + Graphql with React and React Native apps


#1

I need to understand this a little better.

I have a React web-app that has sequelize model definitions and using Graphql to query data from an AWS hosted Postgresql database. This is all working fine.

Now, I am building a React Native app that will query from the same Postgresql database using Graphql. I’m confused if I have to create the same sequelize setup of models in order to query (and set the graphql resolvers) or if I can just setup graphql type/model definitions to query from postgresql without redefining sequelize models.

I will be doing both graphql queries and mutations, which leads me to believe sequelize will be necessary.

Help! I’ve looked everywhere for a tutorial on cross-platform apps and can’t figure out how to get data to my react-native app.