首页 文章
  • 0 votes
     answers
     views

    GraphQL / Apollo:“没有架构可用” . 的NodeJS

    我正在尝试使用GraphQL / Apollo,我的“文档资源管理器”无限加载并且没有显示任何内容,我无法进行任何查询 . 几分钟后,我得到一个typeError "Failed to fetch" . 这是我的 graphql/index.js 文件: const { graphqlExpress, graphiqlExpress } = require('apollo...
  • 0 votes
     answers
     views

    Graphql在字段中的多个参数

    我正在使用GraphQL . 我能够在一个字段中传递一个参数 . 但我想知道如何将多个参数传递给字段 . This is my code: GraphlQL Object type: Price availability const priceAvailability = new GraphQLObjectType({ name: "priceAvailability"...
  • 0 votes
     answers
     views

    检测解析器中的参数类型

    在解析器中,我需要检测参数的类型 . 我可以有一个深层嵌套的参数对象,它是多种输入类型的组合 . 像这样: # where is of type DocumentWhereInput # and nested objects in OR operator are DocumentWhereInput types too documents(where: {OR: [{id_gt: 0}, {id...
  • 0 votes
     answers
     views

    在React中渲染中继现代碎片

    我似乎无法在UI中显示"count"数据 . 我错过了在同一个容器中使用两个片段或渲染edge数组或异步的东西,也许 . 显示除 {this.props.link.votes.count} 之外的所有其他数据,这些数据在UI中为空,而在dev工具中的服务器或客户端上没有出现任何错误 . 它只是没有出现 . 任何帮助将不胜感激 . 谢谢 . 反应组件看起来像: <div c...
  • 0 votes
     answers
     views

    在变异中不使用GraphQL变量

    我的突变查询: mutation ($matchId: String!) { assignMatch(matchId: $matchId) { id } } 查询变量: { "matchId": "123" } GraphQL架构(Mutation定义): type Mutation { assignMatch(matchId: ...
  • 0 votes
     answers
     views

    空白的GraphQL查询应该返回什么?

    我正在尝试构建一个GraphQL服务器,我正在尝试使用GraphiQL Chrome扩展程序来使用它 . 一旦我将 endpoints 设置为我的服务器,http://localhost:3000/graphql,GraphiQL就会发送一个空查询: Request URL:http://localhost:3000/graphql Request Method:POST Status Code:...

热门问题