在vue阿波罗中只能使用发布方法吗?
我们正在使用来自cli的graphql和vue apollo插件,我只想使用post方法,可以吗?
我已经连接了,但是我只是使用post方法。 我尝试fetchOptions:{方法:“ POST”},但不起作用*
这些是我的配置
const defaultOptions = {
// You can use `https` for secure connection (recommended in production)
httpEndpoint,
// You can use `wss` for secure connection (recommended in production)
// Use `null` to disable subscriptions
wsEndpoint: MyUrl,
// LocalStorage token
tokenName: AUTH_TOKEN,
// Enable Automatic Query persisting with Apollo Engine
persisting: false,
// Use websockets for everything (no HTTP)
// You need to pass a `wsEndpoint` for this to work
websocketsOnly: false,
// Is being rendered on the server?
ssr: false,
}
};