M
M
Maksim B2019-06-22 18:04:24
Node.js
Maksim B, 2019-06-22 18:04:24

How to work with the database in an isomorphic Next.JS application?

Next.JS seems to be a fairly promising framework, but it doesn’t say anything about how to organize data retrieval in applications where React components are rendered both on the server side and on the client side (mysql, mongo). From an architectural point of view, there should be some kind of layer that abstracts the interface for working with databases. Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2019-06-22
@Sundagy

From an architectural point of view, there should be some kind of layer that abstracts the interface for working with databases.

REST API, graphql, etc ..
next doesn't do magic, cloud next is not about back, although of course no one bothers to integrate it with expres or something like that, next is just about server front rendering

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question