Now that we have our Fauna database and indexes all set, we’ll see how to perform queries from our Next.js application using the FaunaDB JavaScript driver.

More specifically, we’ll build a query manager to connect our Next.js application to our Fauna database and to implement all the necessary queries using FQL to create, read, update, and delete (CRUD) blog posts from the database.

On top of all the FaunaDB built-in methods we are going to use, we’ll see how to join two indexes to search and sort blog posts at the same time inside the same query.

#crud #next.js #javascript

CRUD Query Manager for instantiating A FaunaDB Client - #10
1.35 GEEK