サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
衆院選
graphql.org
As the adage goes, unity is strength. The premier GraphQL EU “unconference”, held in Berlin, is a testament to this belief. This phenomenal event was the result of immense collaboration between various companies and providers within our vibrant ecosystem. The partnership among these key players, backed by the tireless efforts of the GraphQL Foundation, truly highlighted the strength of our communi
Rob Richard and Liliana Matos are front-end engineers at 1stDibs.com. They have been working with the GraphQL Working Group as champions of the @defer and @stream directives. The @defer and @stream directives have been a much anticipated set of features ever since Lee Byron first talked about it at GraphQL Europe 2016. For most of 2020, we have been working with the GraphQL Working Group to standa
Pagination Different pagination models enable different client capabilities A common use case in GraphQL is traversing the relationship between sets of objects. There are a number of different ways that these relationships can be exposed in GraphQL, giving a varying set of capabilities to the client developer. Plurals The simplest way to expose a connection between objects is with a field that ret
What is the GraphQL Foundation? The GraphQL Foundation is a neutral foundation founded by global technology and application development companies. The GraphQL Foundation encourages contributions, stewardship, and a shared investment from a broad group in vendor-neutral events, documentation, tools, and support for GraphQL. GraphQL was created in 2012 and open sourced by Facebook in 2015. In 2019,
Caching Providing Object Identifiers allows clients to build rich caches In an endpoint-based API, clients can use HTTP caching to easily avoid refetching resources, and for identifying when two resources are the same. The URL in these APIs is a globally unique identifier that the client can leverage to build a cache. In GraphQL, though, there’s no URL-like primitive that provides this globally un
Schemas and Types On this page, you’ll learn all you need to know about the GraphQL type system and how it describes what data can be queried. Since GraphQL can be used with any backend framework or programming language, we’ll stay away from implementation-specific details and talk only about the concepts. Type system If you’ve seen a GraphQL query before, you know that the GraphQL query language
Loading…
Authorization Delegate authorization logic to the business logic layer Authorization is a type of business logic that describes whether a given user/session/context has permission to perform an action or see a piece of data. For example: “Only authors can see their drafts” Enforcing this kind of behavior should happen in the business logic layer. It is tempting to place authorization logic in the
Services (26)JavaScript (47)Server (74)Client (53)Tools (31)General (6)Go (13)PHP (12)Python (12)Java / Kotlin (13)C# / .NET (10)Rust (4)Ruby (3)Elixir (4)Swift / Objective-C (7)Flutter (2)Gateways And Supergraphs (1)Scala (3)Clojure (4)C / C++ (1)Elm (1)OCaml / Reason (1)Haskell (4)Erlang (1)R (1)Ballerina (2)Julia (2)Groovy (2)Perl (1)D (1)
GraphQL Best Practices The GraphQL specification is intentionally silent on a handful of important issues facing APIs such as dealing with the network, authorization, and pagination. This doesn’t mean that there aren’t solutions for these issues when using GraphQL, just that they’re outside the description about what GraphQL is and instead just common practice. The articles in this section should
Thinking in Graphs It’s Graphs All the Way Down1 With GraphQL, you model your business domain as a graph Graphs are powerful tools for modeling many real-world phenomena because they resemble our natural mental models and verbal descriptions of the underlying process. With GraphQL, you model your business domain as a graph by defining a schema; within your schema, you define different types of nod
It’s simple to use any Express middleware in conjunction with graphql-http. In particular, this is a great pattern for handling authentication. To use middleware with a GraphQL resolver, just use the middleware like you would with a normal Express app. The request object is then available as the second argument in any resolver. For example, let’s say we wanted our server to log the IP address of e
Time and time again I hear the same aspiration from front-end web and mobile developers: they’re eager to reap the developer efficiency gains offered by new technologies like Relay and GraphQL, but they have years of momentum behind their existing REST API. Without data that clearly demonstrates the benefits of switching, they find it hard to justify an additional investment in GraphQL infrastruct
Getting Started With GraphQL.js Prerequisites Before getting started, you should have Node v6 installed, although the examples should mostly work in previous versions of Node as well. For this guide, we won’t use any language features that require transpilation, but we will use some ES6 features like Promises, classes, and fat arrow functions, so if you aren’t familiar with them you might want to
After over a year of being open sourced we’re bringing GraphQL out of “technical preview” and relaunching graphql.org. For us at Facebook, GraphQL isn’t a new technology. GraphQL has been delivering data to mobile News Feed since 2012. Since then it’s expanded to support the majority of the Facebook mobile product and evolved in the process. Early last year when we first spoke publicly about Graph
Queries and Mutations On this page, you’ll learn in detail about how to query a GraphQL server. Fields At its simplest, GraphQL is about asking for specific fields on objects. Let’s start by looking at a very simple query and the result we get when we run it: You can see immediately that the query has exactly the same shape as the result. This is essential to GraphQL, because you always get back w
Introduction to GraphQL Learn about GraphQL, how it works, and how to use it. Looking for documentation on how to build a GraphQL service? There are libraries to help you implement GraphQL in many different languages. For an in-depth learning experience with practical tutorials, see the available training courses. GraphQL is a query language for your API, and a server-side runtime for executing qu
When we announced and open-sourced GraphQL and Relay this year, we described how they can be used to perform reads with queries, and to perform writes with mutations. However, oftentimes clients want to get pushed updates from the server when data they care about changes. To support that, we’ve introduced a third operation into the GraphQL specification: subscription. Event-based subscriptions The
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools. Ask for what you need, get exactly thatSend a GraphQL q
このページを最初にブックマークしてみませんか?
『GraphQL | A query language for your API』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く