0

是否可以在 vue apollo 中仅使用 post 方法?

我们正在使用cli中的graphql和vue apollo插件,我只想使用post方法,可以吗?

我已经连接,但我只是使用 post 方法。我尝试 fetchOptions: { method: "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,
}
};
4

0 回答 0