腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(412)
视频
沙龙
1
回答
Apollo
2.0.0
Graphql
cookie
会话
graphql
、
session-cookies
、
apollo-server
、
express-graphql
我的设置如下在阿波罗2.0之前,我有一个server.js,在其中我使用express和
graphql
-server-express我有一个http唯一的
cookie
会话
,当用户登录时,我将JWT令牌设置为
cookie
,它在浏览器中设置为仅http。在随后的请求中,我验证浏览器传回的
cookie
。一切运行正常,我可以在任何其他解析器中从req.session.token访问令牌,并验证保存在
cookie
会话
中的JWT令牌。我现在无法在任何后续请求中访问req.sessi
浏览 8
提问于2018-08-23
得票数 11
回答已采纳
1
回答
未使用
apollo
客户端、
apollo
服务器和express
会话
设置
Cookie
reactjs
、
cookies
、
apollo-client
、
apollo-server
、
express-session
我正在尝试初始化
cookie
在登录时使用快速
会话
,但它似乎只工作,我从同一网站请求。
Apollo
-客户端: const endPoint = createUploadLink({}) link: endPoint, cache: new In
浏览 23
提问于2021-05-10
得票数 0
2
回答
阿波罗-服务器-快件、阿波罗-服务器和阿波罗-缓存-控制中的TypeScript导入问题
typescript
、
npm
、
react-apollo
、
apollo-server
、
tsconfig
/federation": "^0.10.2", "@types/
cookie
-parser": "^1.4.2","@types/jest": "^24.0.19", "@types&
浏览 2
提问于2020-10-22
得票数 2
回答已采纳
1
回答
升级到
apollo
-server-express
2.0.0
上下文丢失
express
、
graphql
、
apollo-server
、
express-graphql
在升级之前,我们有import { graphqlExpress, graphiqlExpress } from '
apollo
-server-express'; '/
graphql
', graphqlExpress(req => ({tracing: true, context: { req
浏览 0
提问于2018-08-15
得票数 1
1
回答
无法在阿波罗服务器上下文中获取
会话
?
javascript
、
node.js
、
graphql
、
apollo
、
apollo-server
我遇到了这个问题:我该怎么解决呢?';// Import resolvers import main_config from/
Graphql
/Topics/Topics.res
浏览 1
提问于2021-01-25
得票数 4
2
回答
Express-session不设置
cookie
?
node.js
、
express
、
redis
、
graphql
、
express-session
我跟着走,在设置登录
cookie
时遇到了一堵墙(aprx在1:50:00)。我想我成功地连接到了redis,设置了express-session并设置了请求类型,但是在
graphql
沙箱中,我在Inspect->Application中看不到我的
cookie
(名为'qid')/mikro-orm.config";import { ApolloServer } from "
apollo
浏览 36
提问于2021-09-26
得票数 1
1
回答
“找不到阿波罗客户端实例”
reactjs
、
apollo
/
graphql
-language-service-interface@2.0.2│ └─ @apollographql/
graphql
-language-service-utils@^
2.0.0</em
浏览 0
提问于2019-09-01
得票数 5
回答已采纳
2
回答
Next JS :如何为Next JS中的服务器端API调用获取
cookie
中存储的令牌
reactjs
、
next.js
代码如下所示 import { ApolloClient } from '
apollo
-client'import withApollo from 'next-with-
apollo
'importfetch from 'iso
浏览 18
提问于2020-03-30
得票数 1
1
回答
带有react测试库的react intl提供了无效的钩子调用错误
reactjs
、
jestjs
、
react-testing-library
、
react-intl
: "14.3.0", "
graphql
-tag": "2.10.1", "history": "4.9.0", "
浏览 10
提问于2020-01-27
得票数 10
1
回答
反应-阿波罗服务器端渲染
javascript
、
reactjs
、
apollo
、
react-apollo
、
next.js
在CSR实现的早期,我的withData.js如下所示import ApolloClient from '
apollo
-boostfunction createClient({ headers }) { uri: `${process.env.ENDPOINT}/
graphql
我需要将next-with-
apollo
与react-<e
浏览 3
提问于2019-05-18
得票数 0
2
回答
Apollo
服务器将
cookie
设置为在下一个js应用程序中访问
node.js
、
graphql
、
apollo-client
、
apollo-server
我有一个Next.js应用程序,我正在使用
apollo
-server-micro和
apollo
-client。当用户遇到登录变异时,我无法设置
cookie
会话
。');更新:
Apollo<
浏览 0
提问于2019-10-23
得票数 2
1
回答
下一次js和阿波罗-琦琦未被通过
javascript
、
reactjs
、
graphql
、
apollo
、
next.js
{ InMemoryCache } from '
apollo
-cache-inmemory';import} from '
apollo
-link-ws';import { SubscriptionClient } from/
apollo
-s
浏览 0
提问于2019-05-22
得票数 14
1
回答
如何添加饼干到vue-阿波罗请求?
django
、
cookies
、
vuejs2
、
apollo
、
vue-apollo
我使用,并希望通过
cookie
将用户从前端选择的language发送到后端。, restartWebsockets } from 'vue-cli-plugin-
apollo
/
graphql
-client' Vue.use(httpEndpoint = process.env.VUE_APP_
GRAPHQL
_HTTP || 'http://localhost:4000/
gr
浏览 3
提问于2019-10-25
得票数 2
回答已采纳
1
回答
graphql
-字体修改后的示例不起作用
node.js
、
graphql
、
prisma
下面是我的src/index.ts修改代码:import * as tq from 'type-
graphql
'//import { ApolloServer } from '
apollo
-server' //import { ApolloServer } from '@
apoll
浏览 7
提问于2022-10-29
得票数 0
2
回答
mongodb <Collection>与阿波罗之间的类型不匹配-数据源-mongodb <Collection>
mongodb
、
react-apollo
、
apollo-server
/client": "^3.6.9", "@
graphql
-tools/schema": "^8.5.0", "@types/express": "github:type
浏览 6
提问于2022-08-17
得票数 0
1
回答
阿波罗的createUploadLink -文件-上传不使用凭据
reactjs
、
google-chrome
、
cookies
、
file-upload
、
apollo-client
我已经设置了阿波罗文件上传,直到我添加了凭据选项,以便在浏览器中接受和拥有
cookie
,但是结果发现,在fireFox中设置的
cookie
会崩溃,而没有在chrome中设置cookies时会崩溃:import { createUploadLink } from '
apollo
-upload-client' uri:'http://localhost:4000/
graphql
浏览 2
提问于2021-05-11
得票数 0
2
回答
在使用
Graphql
在NestJS上订阅时,“无法为非空字段返回null”
angular
、
graphql
、
apollo-client
、
nestjs
我用Nestjs做了一个nodejs后端,我正在使用
Graphql
。我的前端是离子/角度使用阿波罗-角的图形My的东西。--我在订阅数据添加/更改时遇到了问题。}根据
Apollo
-angular的文档,在我的前端我有这样的服务:import { Subscription} from '
apollo
-angular'; import { SCORE_ADDED } from &
浏览 0
提问于2019-08-03
得票数 5
回答已采纳
1
回答
Nuxt
Apollo
模块请求授权头,带有两个'Bearer‘
authentication
、
token
、
nuxt.js
、
apollo
、
auth0
_token.auth0”的
cookie
中。看起来是这样的: Bearer%20eyJhbGciO...我想在我的
apollo
请求授权头中使用这个令牌,所以我配置了我的
apollo
模块:
apollo
: { default: {httpEndpoint: process.env.
GRAPHQL
_ENDPOINT, credentials_token.aut
浏览 32
提问于2020-04-18
得票数 1
回答已采纳
4
回答
安装角10中缺少的依赖项
angular
、
apollo
、
apollo-client
、
apollo-angular
我在我的角度10中使用阿波罗,在运行ng serve之后我遇到了这个问题
浏览 6
提问于2020-07-29
得票数 4
1
回答
使用ra-data-
graphql
和react admin
2.0.0
和apolloclient 2.0
admin-on-rest
我使用react/aor
2.0.0
-beta2和ra-data-
graphql
和指令。';import { Admin, Resource, Delete } from 'react-admin": "^1.0.8", "
graphq
浏览 1
提问于2018-02-07
得票数 1
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
智聆口语评测
活动推荐
运营活动
广告
关闭
领券