Shopify应用程序开发更改GraphQl API版本
我正在尝试更改该应用程序正在使用的GraphQl API的版本。
设置:
- shopify cli ver 2.15.6
- type node.js
在代码中我看不到应用程序正在调用的URL,是否有ENV或某些服务器端 更改为最新API版本的设置?
在Next.js上,我在服务器/client.js上看到了这一点
export const createClient = (shop, accessToken) => {
return new ApolloClient({
uri: `https://${shop}/admin/api/2019-10/graphql.json`,
,但这在嵌入式App Bridge调用中不使用。
我想使用2022-04(最新)版本
I am trying to change the version of the graphql API the app is using.
setup:
- shopify CLI ver 2.15.6
- type node.js
in code I cannot see the URL the app is calling, is there an ENV or some server side
settings to change to the latest API version?
on next.js I see this on the server/client.js
export const createClient = (shop, accessToken) => {
return new ApolloClient({
uri: `https://${shop}/admin/api/2019-10/graphql.json`,
but this is not used in embedded app bridge calls.
I would like to use the 2022-04 (latest) version
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您需要使用上下文来初始化它,根据 docs
I think you need to initialise it using the context, according to the docs