GraphQL入门3(Mutation)
摘要:创建一个新的支持Mutation的Schema. var GraphQLSchema = require('graphql').GraphQLSchema; var GraphQLObjectType = require('graphql').GraphQLObjectType; var Graph
阅读全文
posted @
2018-07-13 17:18
今夜太冷
阅读(5528)
推荐(0) 编辑
GraphQL入门2
摘要:将服务器端的代码升级了一下: var GraphQLSchema = require('graphql').GraphQLSchema; var GraphQLObjectType = require('graphql').GraphQLObjectType; var GraphQLString =
阅读全文
posted @
2018-07-13 17:00
今夜太冷
阅读(210)
推荐(0) 编辑
GraphQL循环引用的问题
摘要:下面的代码中, 由于friends字段引用了PersonType字段,而friends本身又是PersonType的一部分,在运行的时候会报错: Expected undefined to be a GraphQL type var PersonType = new GraphQLObjectTyp
阅读全文
posted @
2018-07-11 11:58
今夜太冷
阅读(390)
推荐(0) 编辑
GraphQL入门1
摘要:1. 资源: 主站: https://graphql.org/ 中文站: http://graphql.cn 入门视频: https://graphql.org/blog/rest-api-graphql-wrapper/ 这个网址中向下拉, 会看到这个入门视频: 从第15分钟看到第30分钟就可以.
阅读全文
posted @
2018-07-05 16:33
今夜太冷
阅读(241)
推荐(0) 编辑
GraphQL: Object doesn't support property or method 'from'
摘要:From: https://github.com/graphql/graphiql/issues/688 psyCodelist commented 11 days ago Hi, Thank you in advance. Just wanted to let you know the the w
阅读全文
posted @
2018-07-04 11:50
今夜太冷
阅读(551)
推荐(0) 编辑