I am using https://github.com/i18next/next-i18next and rather than hardcoding the files, I want to use HygraphCMS (formerly GraphCMS) to provide those strings. What's the best way to approach this?
If I wait for an async request, it'll slow things…
I created the following query in graphcms and it works in the graphql playground but when I transfer the query to my react code and try to access graphcms I get a 403 error shown below.
The query:
import { request, gql } from…
I'm currently facing an issue with fetching data in a client-side component using Next.js app dir, and I'm hoping to get some assistance with resolving it.
I have a specific requirement where I need to fetch data with graphql from graphCMS within a…
I'm trying to deploy my NextJs app (using GraphCMS) on Vercel. When I build the app on my computer it works fine, I can build and run the app locally but once I try to deploy the same exact app on Vercel it crash with this error
TypeError: Cannot…
After clicking on the framework preset and deploying to vercel, I get this error:
No Next.js version could be detected in your project. Make sure "next" is installed in "dependencies" or "devDependencies"
even though I have next in my dependencies…
I'm trying to use NextJS and GraphQL to fetch some data from GraphCMS to a page located at pages/writing.js. The problem is, doesn't matter what I do I get errors like TypeError: Cannot read properties of undefined (reading 'title').
I've been…
Hi im Using GraphCms to use GraphQl API and when i try to use data of image.url i get null or a void string. I check and the assets are published.
this my react code:
i get this error on console: {"errors":[{"message":"input:1: Field \"image\" of…
Can someone help me figure out how to implement pagination in a blogs list page? I have tried a couple of methods but all of them seem to break the site.
There are over 100 pages and It should Display 6 per page and load 6 more at the bottom if 'see…
I'm trying to upload an image when a form is submited, the problem comes when I try to send the image as a base64 to the upload endpoint.
// Form input for image uploads
I'm using GraphCMS as my CMS for my GatsbyJS site, and I want to query for a specific image files, which I can then use in a React component.
When using localhost:8000___grapql I'm able to find all my assets using this path:
{
discord:…
I'm working on a GraphCMS site in React and would like to set up a GraphQL query to filter posts. We have this query setup which works and fetches all posts (adoptions) :
export const allAdoptions = gql`
query allAdoptions($first: Int!, $skip:…
I am implementing a function to delete a record from the database with graphql but it is giving me headaches now. I am using hygraph/graphcms on which the query is running perfectly fine but its not working in the code.
Here is the query -
const…
I use the following mutation for inserting an image into a post.
mutation MyMutation {
createPost(
data: {title: "", excerpt: "", content: "", postid: "", featuredImage: {create: {fileName: "", handle: ""}}, author: {connect: {Author: {email:…
i recently started working with graphCMS and I am looking to implement the full text search functionality inside my nextjs app but i can't seem to find anything so I wanted to ask that currently does the graphCMS supports full text search or not? If…
I am making a blog website and using graphcms backend with GraphQl, I made a comment form and trying to get data from client side , i am using next js build in api folder to make an endpoint to createcomment , But i am getting error when someone…