Questions tagged [prisma-graphql]

Prisma transforms your database structure into a GraphQL API with ease.

Playing around with Apollo-server and Prisma 2

I'm having trouble using JEST with Prisma 2. Whenever I run a simple test, I encounter an unusual error message: npm run test > [email protected] test /Users/jeremiechazelle/Sites/prisma2/server > env-cmd -f ./env/.env.test jest --watchAll ...

Generate a user with unique UUID identifier and an array of nested objects

When using GraphQL, React, and Prisma, I encountered a challenge in creating a user with a UUID as the ID and a nested object array containing all input data related to that user. My objective is to display all input data associated with a user in React. H ...

What is the best way to refetch data post-creation when working with Prisma in NextJS?

While my data is being loaded at build time using the getStaticProps method, I am faced with a scenario where I need to create new data through a form submission: const handleSubmit = async ({ name, score }) => { const body = { name, email } await f ...

"When attempting to access a model that has been added in the Prisma schema, the error message 'Property does not exist' is

Currently, I am working on a ReactJS project using the NextJS Framework and Prisma for managing connections and database queries. Within my local project, everything runs smoothly with the Support model. However, when I deploy the project to my production ...

Executing GraphQL mutation server-side utilizing an Apollo server with a Node.js script

I am currently running a scraping script using Puppeteer, and my goal is to save each scraped row into the database. However, I have encountered an error: Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This ...