並び順

ブックマーク数

期間指定

  • から
  • まで

521 - 560 件 / 1470件

新着順 人気順

graphqlの検索結果521 - 560 件 / 1470件

  • Relay/GraphQL On Rails

    Summary: If you are excited about just declaring data required by your UI components while leaving the difficult parts of data fetching, updating, and data handling performance issues to a framework, you will be excited by Facebook’s recent release of Relay/RelayJS (Sep 2015), which works with React UI (Oct 2014). This article shows you how to to integrate Relay/React into Rails. NOTE: You can clo

      Relay/GraphQL On Rails
    • Explaining GraphQL Connections | Apollo GraphQL Blog

      I don’t read many books these days, but I do listen to books. Thanks to the incessant work of the Audible marketing team Amazon has converted me into an audiobook consumer. I’m pretty happy now with my new found hobby that allows me to take a book anywhere and “read” while doing tasks where my eyes would otherwise be occupied. Yet there is one thing that I find difficult about the medium. Audioboo

        Explaining GraphQL Connections | Apollo GraphQL Blog
      • 【GraphQL】スキーマ駆動開発におけるバリデーションの取り決め設計パターン集

        ハコベル物流DXシステム開発部のおおいし (@bicstone) です。普段はフロントエンドエンジニアとしてハコベル配車計画の開発を行なっています。 前回の記事では、GraphQLをプロダクトに投入するにあたり検討したエラーレスポンス設計パターンについて紹介しました。 この記事では、フロントエンドとバックエンド間でのバリデーションスキーマの取り決めについて解説します。 GraphQLスキーマ設計で悩まれている方の参考になれば幸いです。 はじめに ハコベル配車計画では、バックエンドとフロントエンド間の通信においてGraphQLを活用しています。1年ほど運用していく中で、設計における課題がいくつか表面化してきました。 今回、社内ハッカソンイベントHackWeek 2023 [1] が開催され、ハコベル配車計画チームでは1年間の運用の中で感じた、GraphQLスキーマの設計における悩みを振り返る

          【GraphQL】スキーマ駆動開発におけるバリデーションの取り決め設計パターン集
        • GitHub - Shopify/graphql-batch: A query batching executor for the graphql gem

          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

            GitHub - Shopify/graphql-batch: A query batching executor for the graphql gem
          • GraphQL Subscription with Relay and Action Cable

            Introducing GraphQL Subscription with Relay and graphql-ruby (use Action Cable as the backend). See Also: * http://facebook.github.io/graphql/draft/ * http://graphql-ruby.org/subscriptions/overview.html * https://facebook.github.io/relay/docs/en/subscriptions.html * https://speakerdeck.com/hibariya/building-a-web-api-with-graphql * https://blog.ably.io/rails-5-actioncable-the-good-and-bad-parts-1b

              GraphQL Subscription with Relay and Action Cable
            • GraphQL::Batchのサンプルコードを読む & 使ってみる - kymmt

              単純にGraphQLクエリを投げると、サーバサイドでの関連を含むレコード取得時にN+1問題が発生することがあります。こういうケースでは、複数のデータ取得リクエストをひとまとめにして、単一のリクエストとしてDBからデータを取得するbatchingが推奨されています*1。 GraphQLにおけるbatchingをgraphql gemを使ってやるためのGraphQL::Batchというgemがあります。先日リポジトリにサンプルコードが追加されて使いかたを把握しやすくなったので、サンプルコードを読みながら使ってみます。 github.com GraphQL::Batchの概要 GraphQL::Batchでは、Loaderというデータを取得するためのクラスを作って使うことが想定されています。これは、Facebookが開発しているDataLoaderでの考えかたが元となっています。Loaderがb

                GraphQL::Batchのサンプルコードを読む & 使ってみる - kymmt
              • GraphQL の情報を雑にまとめる - Katashin .info

                2018年8月26日Apollo,GraphQL最近 GraphQL を使うことがあり、いろいろ調べたりしていることをメモしておきます。自分が必要なものしかまとめてないので情報には偏りがあります (具体的には Apollo、TypeScript や Ruby あたりに偏ってます)。 GraphQL / Apollo まわりのテストの話は別の記事で詳しく書くかもしれないです。 基本知識 #GraphQL | A query language for your API #公式サイト。GraphQL のコンセプトやできることを知りたいときに見る。 GraphQL Concepts Visualized – Apollo GraphQL #GraphQL のコンセプトを図を交えて説明。アプリケーションのデータをグラフで表し、その一部を取得するために GraphQL を使う。効率的なキャッシュを行う

                  GraphQL の情報を雑にまとめる - Katashin .info
                • GitHubにとってAPIとは? GraphQLが提供する価値とは?

                  GitHub Universe 2017で発表されたGraphQL APIについて、Director of Ecosystem Engineeringに話を訊いてみた。 ソースコードリポジトリーサービスGitHubの年次イベント、GitHub Universe 2017において、数多くの新しい技術やサービスが紹介された。今回は、その中からAPIとGraphQLを取り上げ、Director of Ecosystem EngineeringのKyle Daigle氏に話を伺った。 まずKyleさんのGitHubでのキャリアを教えてください。 Daigle:私はGitHubで働き始めて、もう4年半になります。それまでエンジニアとして、インフラストラクチャーや今回発表したGraphQLなどを担当してきました。全てのAPIやマーケットプレイス、それにパートナーのエコシステムに関するエンジニアリングを

                    GitHubにとってAPIとは? GraphQLが提供する価値とは?
                  • GraphQL Cursor Connections Specification

                    This specification aims to provide an option for GraphQL clients to consistently handle pagination best practices with support for related metadata via a GraphQL server. This spec proposes calling this pattern “Connections” and exposing them in a standardized way. In the query, the connection model provides a standard mechanism for slicing and paginating the result set. In the response, the connec

                    • Securing Your GraphQL API from Malicious Queries | Apollo GraphQL Blog

                      February 21, 2018Securing Your GraphQL API from Malicious Queries With GraphQL you can query exactly what you want whenever you want. That is amazing for working with an API, but also has complex security implications. Instead of asking for legitimate, useful data, a malicious actor could submit an expensive, nested query to overload your server, database, network, or all of these. Without the rig

                        Securing Your GraphQL API from Malicious Queries | Apollo GraphQL Blog
                      • GitHub - kriasoft/react-firebase-starter: Boilerplate (seed) project for creating web apps with React.js, GraphQL.js and Relay

                        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                          GitHub - kriasoft/react-firebase-starter: Boilerplate (seed) project for creating web apps with React.js, GraphQL.js and Relay
                        • [GraphQL]gqlgenを使ってアレがしたい - Qiita

                          概要 gqlgenを使ってGraphQLサーバを実装している。 今は開発に慣れてきた部分があるが、gqlgenの導入時に調査が必要であったアレやるには?コレやるには?を少し書いてみる。 しかし、どれも大体公式ドキュメントに乗っている内容なので詳細はそちらを見るのがよい 公式doc GraphQL gqlgen エラーをフックしてアプリ固有の処理をしたい 例えばResolverからエラーを返す際に必ず以下のことを行いたいケースがあるとする Internalエラーはログ出力したい エラーに応じて決められたjsonフォーマットでエラーメッセージを返したい このようなニーズに応えるためにgqlgenのhandler.ServerにはSetErrorPresenterという関数でresolverが返したエラーをHookする仕組みがある。 GraphQLでのエラーメッセージはextensionsという

                            [GraphQL]gqlgenを使ってアレがしたい - Qiita
                          • Create a GraphQL Server with Go and Google App Engine - Outcrawl

                            GraphQL is better than REST for developing and consuming APIs. It lets you query the exact data you need without having to create many overspecific API endpoints. This article describes how to get GraphQL server running on Google App Engine with a "simple social network" data model. This tutorial uses the following technologies: Google Cloud SDK 173.0.0 (Installation instructions, also install goo

                              Create a GraphQL Server with Go and Google App Engine - Outcrawl
                            • Reducing our Redux code with React Apollo | Apollo GraphQL Blog

                              June 9, 2017Reducing our Redux code with React Apollo I’m a firm believer that the best code is no code. More code often leads to more bugs and more time spent maintaining it. At Major League Soccer, we’re a very small team, so we take this principle to heart. We try to optimize where we can, either through maximizing code reuse or lightening our maintenance burden. In this article, you’ll learn h

                                Reducing our Redux code with React Apollo | Apollo GraphQL Blog
                              • apollo-cli で GraphQL Schema から TypeScript/Flow/Scala/Swift のコードを生成する - Qiita

                                apollo-cli で GraphQL Schema から TypeScript/Flow/Scala/Swift のコードを生成するGraphQLapollo

                                  apollo-cli で GraphQL Schema から TypeScript/Flow/Scala/Swift のコードを生成する - Qiita
                                • GitHub - graphql/graphql-spec: GraphQL is a query language and execution engine tied to any backend service.

                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                    GitHub - graphql/graphql-spec: GraphQL is a query language and execution engine tied to any backend service.
                                  • Apollo なら爆速で GraphQL サーバーと GraphQL クライアントアプリが作れる - Qiita

                                    はじめに 最近気になっていた Apollo について、1 から調べてみました。Apollo 入門記事の位置付けを目指しています。 よって、本記事は以下のような読者を対象にしています。 Apollo って聞いたことはあるけど、何ができるのかよくわからない 気にはなってたけど、日本語の情報が少なくて調べる気になれない バックエンドのツールなのかフロントエンドのツールなのか、話はそれからだ 本記事の内容 Apollo の簡単な概要 Apollo を使って GraphQL サーバーを建ててみる Apollo を使って GraphQL サーバーを利用する React アプリを作ってみる Apollo の簡単な概要 公式ページはここです。 以下の画像が思想の全てを語っていると思います。 すべてが A(pollo)になる。 Apollo を利用することで、あらゆるデータが GraphQL サーバーとして

                                      Apollo なら爆速で GraphQL サーバーと GraphQL クライアントアプリが作れる - Qiita
                                    • graphql-rubyの知見をscrapboxにまとめはじめた - Islands in the byte stream

                                      scrapbox.io graphql-ruby の知見をまとめはじめた。 / “GraphQL for Ruby” https://t.co/PqotLzAdtV— FUJI Goro (@__gfx__) 2018年6月10日 なんで graphql-ruby 限定かというと、graphql-ruby はいくつかの独自機能(e.g. complexityベースのAPI制限)があったGraphQL schemaをまったく知らなくても開発できたり、と、他の言語(特にJS)とは開発体験がだいぶ違いそうだからです。— FUJI Goro (@__gfx__) 2018年6月10日

                                        graphql-rubyの知見をscrapboxにまとめはじめた - Islands in the byte stream
                                      • From REST to GraphQL

                                        Disclaimer: GraphQL is still new and best practices are still emerging. This post describes some of my journey with implementing a GraphQL backend service, so it is a snapshot of what I’ve learned so far, presented in the hopes that it will be useful to others. Also, some of the specific real-world implementation details internal to Playlist have been paraphrased / simplified / anonymized for obvi

                                        • Netlify + Netlify CMS + GatsbyJS ( React + GraphQL )でブログ作ったときにハマった点

                                          👾 Lunash 📂 技術 📑 Netlify + Netlify CMS + GatsbyJS ( React + GraphQL )でブログ作ったときにハマった点 Netlify + Netlify CMS + GatsbyJS ( React + GraphQL )でブログ作ったときにハマった点 掲題の JAM Stack の構成で作成した。構築の上でハマったところが何個かあったのでまとめておく。 🚀Netlify・Netlify CMS・GatsbyJS とは そもそも、前提としてそれぞれの用語についての簡単な説明をしていく。 JAMStack アーキテクチャの1つ。JavaScript + APIs + Markup で構成されたシステム。 Netlify ホスティングサービスの1つ。もし昔の自分に Netlify を説明するなら 「静的サイト用 heroku + Cir

                                            Netlify + Netlify CMS + GatsbyJS ( React + GraphQL )でブログ作ったときにハマった点
                                          • GraphQL with Next.js and Apollo | nec.is

                                            GraphQL with Next.js and Apollo I’ve discovered Next.js few months ago, as a solution for Server-side Rendered React, and I’m playing with it since, integrating with various solutions for i18n, state management, routing etc. Some weeks ago I’ve tried it out with GraphQL, building a small page with these tools. This and the following posts are the summary I learned about some performance-tuning tec

                                              GraphQL with Next.js and Apollo | nec.is
                                            • Relicensing the GraphQL specification

                                              Today we’re relicensing the GraphQL specification under the Open Web Foundation Agreement (OWFa) v1.0. We think the OWFa is a great fit for GraphQL because it’s designed for collaborative open standards and supported by other well-known companies. The OWFa allows GraphQL to be implemented under a royalty-free basis, and allows other organizations to contribute to the project on reasonable terms. A

                                                Relicensing the GraphQL specification
                                              • A Guide to GraphQL Errors

                                                🌱 This post is still growing and likely will change as the best practices evolve 🌳 GraphQL errors are something many of us struggle with. Good practices are emerging but the community has not yet settled on a convention. I hope this guide helps demystifiy the many ways you can structure errors in your GraphQL servers, and the tradeoffs each of them make. Stage 1: GraphQL Errors AKA Top-Level Err

                                                  A Guide to GraphQL Errors
                                                • The GraphQL stack: How everything fits together | Apollo GraphQL Blog

                                                  November 7, 2017The GraphQL stack: How everything fits together It’s been over 2 years since GraphQL was released as an open source technology by Facebook. Since then, the community has grown exponentially, and there are now thousands of companies using GraphQL in production. At this October’s GraphQL Summit 2017, I had the privilege of giving the opening keynote on the second day. You can watch t

                                                    The GraphQL stack: How everything fits together | Apollo GraphQL Blog
                                                  • Mocking and Testing GraphQL in React

                                                    Testing GraphQL doesn't have to be difficult. This article will explore static and dynamic mocks to make testing GraphQL a breeze. Imagine you're working on a new feature with another team. You're in charge of the React side, but someone else is in charge of the GraphQL changes. Is it possible for you to develop your side before they have finished theirs? Or how about wanting to test your componen

                                                      Mocking and Testing GraphQL in React
                                                    • Streamlining APIs, Databases, & Microservices | Apollo GraphQL

                                                      Join us from October 8-10 in New York City to learn the latest tips, trends, and news about GraphQL federation and API platform engineering.

                                                        Streamlining APIs, Databases, & Microservices | Apollo GraphQL
                                                      • なぜGraphQLをコードファーストに統一したのか? 型定義の一貫性を保つためのBFF/FE大整理

                                                        受発注・サプライチェーン管理システムとサプライパートナー向けシステムに関する現状や課題などについて、開発を担当しているエンジニアが話す「Rustで負債を解消するために大幅刷新する複雑な業務Webアプリ」。ここ​​でフロントエンドエンジニアのOgura氏が登壇。BFF/FEを大整理した経験について話します。 自己紹介とセッションのあらすじ Ken Ogura氏(以下、Ogura):ではOguraから「『Rust製の業務WebアプリケーションをRustでリプレイス』のドサクサでBFF/FEを大整理した話」をします。 私の自己紹介。フロントエンドエンジニアをやっています。もともとはバックエンドでRustバリバリ触ってたんですが、いろいろな事情で今はフロントエンドを触っています。あと趣味でいうと競技プログラミングが得意です。あとYouTuberもやってます。 私の(発表)時間はちょっと短いので、早

                                                          なぜGraphQLをコードファーストに統一したのか? 型定義の一貫性を保つためのBFF/FE大整理
                                                        • 200 OK! Error Handling in GraphQL

                                                          We all know how great GraphQL is when things go well, but what happens when things don’t go well? How do we handle errors in GraphQL? How can we do it in a way that’s easy to understand? Let’s start by running a simple GraphQL query: { user(username: "@ash") { id name } }we might get something like this: { "data": { "user": { "id": "268314bb7e7e", "name": "Ash Ketchum" } } }This is what we hope to

                                                            200 OK! Error Handling in GraphQL
                                                          • GitHub - graphql-kit/graphql-voyager: 🛰️ Represent any GraphQL API as an interactive graph

                                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                              GitHub - graphql-kit/graphql-voyager: 🛰️ Represent any GraphQL API as an interactive graph
                                                            • Apollo Client | The flexible, production ready GraphQL client for React, and all JavaScript and native apps.

                                                              Apollo Client is a comprehensive state management library for JavaScript that enables you to manage both local and remote data with GraphQL. Use it to fetch, cache, and modify application data, all while automatically updating your UI. Apollo Client helps you structure code in an economical, predictable, and declarative way that's consistent with modern development practices. The core @apollo/clie

                                                                Apollo Client | The flexible, production ready GraphQL client for React, and all JavaScript and native apps.
                                                              • gRPCとGraphQL - Qiita

                                                                はじめに gRPCとGraphQLをどう使い分けるかがわからず混乱していたので、軽く整理した。 どう違うか GraphQLはAPI用のクエリ言語で必要なデータを指定することで無駄な通信をしないようにすることができる。 一方でgRPCはProtocol bufferを用いてRPC(サーバー上のメソッドをあたかもクライアント側で呼んでいるかのように見せるもの)を実現している。 どちらも、サーバーに対してリクエストを出しレスポンスを受け取るという目的は一緒。 ただ、gRPCはGraphqlのように柔軟なクエリ(関数呼び出し)はない。 サービスという形でRPCの関数を呼び出し結果を得るが、その結果の形は固定。 また、Mediumの記事でも述べられている通り、gRPCは低レベル向き、GraphQLは高レベル向き。 なので、ウェブアプリを作るときには、フロント側がアクセスするAPIはGraphQLで、

                                                                  gRPCとGraphQL - Qiita
                                                                • Graphile | Powerful, Extensible and Performant GraphQL APIs Rapidly

                                                                  Introducing Grafast!The next-generation planning and execution engine for GraphQL Enables greater performance and efficiency via deeper integration into your existing Node.js or remote business logic, no matter the shape of your GraphQL schema. Grafast and PostGraphile V5 are in beta, funded by the Graphile community.

                                                                  • 設定いらずのNode製GraphQLサーバー「Graphpack」の使い方 / Query, Mutation, Subscriptionを試す | Takumon Blog

                                                                    設定いらずのNode製GraphQLサーバー「Graphpack」の使い方 / Query, Mutation, Subscriptionを試す なにこれ 「とりあえずクライアント側と同じJavaScriptで手っ取り早くGraphQLサーバー立てたい!」 このようなユースケースにGraphpackはピッタリです。 設定いらずのNode製GraphQLサーバーで 「GraphQLのスキーマとリゾルバーを定義するだけでOK」、さらに **「GraphQL Playground IDEが標準搭載」**なのでクライアント側を自前で実装せずとも動作確認できます。 今回は、このGraphpackの使い方について以下の5ステップでご紹介します。 ※ここで紹介するソースコードはGitHub(Takumon/nuxt-graphpack-sample)にもあるので参考にしてみてください。 🔰 Graph

                                                                      設定いらずのNode製GraphQLサーバー「Graphpack」の使い方 / Query, Mutation, Subscriptionを試す | Takumon Blog
                                                                    • GraphQL Best Practices | GraphQL

                                                                      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

                                                                      • GraphQL: A data query language

                                                                        When we built Facebook’s mobile applications, we needed a data-fetching API powerful enough to describe all of Facebook, yet simple enough to be easy to learn and use by our product developers. We developed GraphQL three years ago to fill this need. Today it powers hundreds of billions of API calls a day. This year we’ve begun the process of open-sourcing GraphQL by drafting a specification, relea

                                                                          GraphQL: A data query language
                                                                        • Lee Byron - Exploring GraphQL at react-europe 2015

                                                                          At React.js Conf last January, we introduced the idea of GraphQL: a data fetching language that allows clients to declaratively describe their data requirements. Let's explore more of GraphQL, it's core principles, how it works, and what makes it a powerful tool.

                                                                            Lee Byron - Exploring GraphQL at react-europe 2015
                                                                          • GraphQLのアプリケーションへの組み込みを考える - RAKUS Developers Blog | ラクス エンジニアブログ

                                                                            こんにちは、株式会社ラクスで先行技術検証を行っている技術推進課の@t_okkanです。 技術推進課では、新サービス立ち上げ時の開発速度アップを目的に、現在ラクスでは採用されていない新しい技術の検証を行う、技術推進プロジェクトがあります。 今回はその技術推進プロジェクトで、GraphQLについて検証を行いましたので、その結果の報告を行います。 なお、別テーマの取り組みや、過去の取り組みに関しては、こちらからご覧ください。 tech-blog.rakus.co.jp GraphQL GraphQLの言語仕様 クエリ言語 スキーマ言語 GraphQLのアーキテクチャ スキーマファーストな開発 検証してわかったこと フロントエンドとバックエンドの実装を切り離せ、お互いを疎結合にできる 共通の定義ファイルを元に実装を行うため、APIの仕様が明確になり実装の手戻りの防止や開発速度の向上が見込める その

                                                                              GraphQLのアプリケーションへの組み込みを考える - RAKUS Developers Blog | ラクス エンジニアブログ
                                                                            • Build a GraphQL + React app with TypeScript - LogRocket Blog

                                                                              We pass in the id as a variable, which corresponds to the flight_number from the LaunchList query. The LaunchProfile query will also contain nested objects/types, where we can get values by specifying the keys inside brackets. For example, the launch contains a rocket definition (type LaunchRocket), which we will ask for the rocket_name and rocket_type. To get a better understanding of the fields

                                                                                Build a GraphQL + React app with TypeScript - LogRocket Blog
                                                                              • GraphiQL: GraphQL’s Killer App

                                                                                Maybe you haven’t heard of GraphQL. It’s a query language for front-end engineers to retrieve data from the back-end. It might be helpful to think of GraphQL as an alternative to REST or JSON-API. So why does GraphQL matter? Why ditch known quantities like REST, SOAP, or whatever homegrown system you’re using? The specification’s Overview has some good points, but let me appeal to you in a differe

                                                                                  GraphiQL: GraphQL’s Killer App
                                                                                • GitHub - CannerCMS/cannercms: ⚡️ Content Management Framework creates custom CMS fast and easy. Support data sources such as Firebase/Firestore, GraphQL and Restful APIs.

                                                                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                                    GitHub - CannerCMS/cannercms: ⚡️ Content Management Framework creates custom CMS fast and easy. Support data sources such as Firebase/Firestore, GraphQL and Restful APIs.