随笔分类 -  GraphQL

摘要:In this lesson we look at how the Apollo @client directive can be used to fetch client-side state along with server data with one query. I also show h 阅读全文
posted @ 2018-04-03 22:47 Zhentiw 阅读(160) 评论(0) 推荐(0) 编辑
摘要:In this lesson I refactor a React component that utilizes the graphql higher-order component to the new Query render prop component baked into react-a 阅读全文
posted @ 2018-03-09 22:47 Zhentiw 阅读(535) 评论(0) 推荐(0) 编辑
摘要:In this lesson we'll use a simple GraphQL IDL schema to deploy and explore a fully functional GraphQL service in minutes with graphql-up. Install: Cre 阅读全文
posted @ 2017-05-17 22:51 Zhentiw 阅读(301) 评论(0) 推荐(0) 编辑
摘要:As we start building out more complex GraphQL schemas, certain fields start to repeat across different types. This is a perfect use-case for the Inter 阅读全文
posted @ 2017-01-10 22:19 Zhentiw 阅读(473) 评论(0) 推荐(0) 编辑
摘要:When we have certain mutations that require more complex input parameters, we can leverage the Input Object Type in GraphQL. In this video, we’ll lear 阅读全文
posted @ 2017-01-10 20:24 Zhentiw 阅读(573) 评论(0) 推荐(0) 编辑
摘要:In order to change the data that we can query for in a GraphQL Schema, we have to define what is called a mutation in GraphQL. Mutations allow us to s 阅读全文
posted @ 2017-01-10 20:02 Zhentiw 阅读(1591) 评论(0) 推荐(0) 编辑
摘要:When working with collections of things in GraphQL, we'll always reach out for the GraphQLListType. In this video, we'll learn how to use GraphQLList 阅读全文
posted @ 2017-01-10 16:26 Zhentiw 阅读(520) 评论(0) 推荐(0) 编辑
摘要:While certain fields in a GraphQL Schema can be optional, there are some fields or arguments that are necessary in order to either fulfill a query, or 阅读全文
posted @ 2016-12-31 12:24 Zhentiw 阅读(467) 评论(0) 推荐(0) 编辑
摘要:In GraphQL, every field and nested object is able to take in arguments of varying types in order to do common operations like fetching an object by it 阅读全文
posted @ 2016-12-31 12:11 Zhentiw 阅读(386) 评论(0) 推荐(0) 编辑
摘要:Writing out a GraphQL Schema in the common GraphQL Language can work for simple GraphQL Schemas, but as our application grows, or when we start using 阅读全文
posted @ 2016-12-31 11:51 Zhentiw 阅读(398) 评论(0) 推荐(0) 编辑
摘要:If we have a GraphQL Schema expressed in terms of JavaScript, then we have a convenient package available to us that let’s us easily serve up our sche 阅读全文
posted @ 2016-12-29 15:53 Zhentiw 阅读(254) 评论(0) 推荐(0) 编辑
摘要:In order to handle collections of items in a GraphQL Schema, GraphQL has a List Type. In this video, we’ll learn the syntax for specifying a List of i 阅读全文
posted @ 2016-12-28 09:36 Zhentiw 阅读(249) 评论(0) 推荐(0) 编辑
摘要:We can create the most basic components of our GraphQL Schema using GraphQL's Object Types. These types allow us to group related fields together unde 阅读全文
posted @ 2016-12-28 09:16 Zhentiw 阅读(278) 评论(0) 推荐(0) 编辑
摘要:we’ll take a look at the GraphQL Language and write out our first GraphQL Schema. We’ll use the graphql package available to us through npm to parse o 阅读全文
posted @ 2016-12-28 09:07 Zhentiw 阅读(391) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示