English 中文(简体)
Nuxt + StuQL (Apollo)上载文档
原标题:Nuxt + GraphQL (Apollo) upload files

目前,我正在使用“条形”栏目。 该单元是否用于文件上载,或者我需要将吉大港山区连接起来?

问题回答

After a deep check on the libs and my stack, I finally figured out the issue. I ve made very simple setups of both frontend and backend following the recent docs (they have changed dramatically since I worked with them last time) and I figured out that apparently @nuxt/apollo supports file upload out of the box (Thanks for that to Guillaume Chau)

问题在于我的背后,我不得不在以下网址上更新:apollo-server-express,>^2.21.0"<> to ^3.4.0”。 (一) 跟踪数字,但版本一较老,其支持文件上载重),根据最近编写的数字说明,我已不得不使用<代码>图表qlUploadExpress中文本,并首先使用制图器服务器:

const apolloServer = new ApolloServer({
    schema: schema,
    debug: true,
    context: contextHook
})

export const applyGraphQLMiddleware = async ({ server: app }: { server: Application }) => {
    app.use(graphqlUploadExpress()); // adding this middleware
    await apolloServer.start(); // starting the GraphQL Server 
    apolloServer.applyMiddleware({ app }); // only after that I am applying the express server as a middleware
}

如今,文件上载似乎在发挥作用,因为应当这样做。

比如,你可以在

你们可以帮助我执行前线。





相关问题
Vue array dependent select not display data

I have dependent selection like this. Selection image when i console log, they have data but not render data in selection data This is what i ve tried. for Product selection has default selected value ...

agora voiceCall microphone permission issue

I m developing a voice chat service using WebRTC. This service utilizes react-native-webview and is implemented using the Agora module in Nuxt.js. However, while there are no problems on Android, when ...

Create Vue component documentation library for private use

I want to create a docs site for my Vue components, my question is: do I need to start a completely new project just for component documentation site or I can simply create a new branch in my exsiting ...