随笔分类 - 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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文