我在根文件夹中有一个文件夹graphcms-片段。我已经跟踪了已经存在的文档,但是它没有起作用。Cannot query field "image" on type "Query" Graphiql也只显示对本地机器的查询。我不知道我错过了什么。index.jsimport * as React from "react"import {useStaticQuery, <em
在我使用graphCMS作为后端的下一个Js上,当我试图从服务器获取slug.js中单个项目页面的数据时,就会得到这个错误。但是,它使用index.js方法在.map文件中工作的项目是相同的。import { GraphQLClient, gql } from "graphql-request";
"api urlexport async function get
我使用的是nextJs,有一个页面- index.js和一个导入到index.js的组件Products。产品包含对我正在从中获取数据的graphql端点的请求。(如果我直接粘贴到Products文件中,index.js中的代码就能工作)import Link from 'next/link';}
products.js
import Link from "next/