Skip to content

Instantly share code, notes, and snippets.

@bz0
Last active July 5, 2020 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bz0/5f0428fb55a3a62e4a6c190af5af7b1b to your computer and use it in GitHub Desktop.
Save bz0/5f0428fb55a3a62e4a6c190af5af7b1b to your computer and use it in GitHub Desktop.

PHPでGraphQLを試す
https://qiita.com/kazuhei/items/f647a3b60a6e9c1e9c91

「GraphQL」徹底入門 ─ RESTとの比較、API・フロント双方の実装から学ぶ
https://employment.en-japan.com/engineerhub/entry/2018/12/26/103000#%E7%94%BB%E5%83%8F%E3%82%84%E5%8B%95%E7%94%BB%E3%81%AA%E3%81%A9%E3%81%AE%E5%A4%A7%E5%AE%B9%E9%87%8F%E3%83%90%E3%82%A4%E3%83%8A%E3%83%AA%E3%81%AE%E6%89%B1%E3%81%84%E3%81%8C%E9%9B%A3%E3%81%97%E3%81%84

Web API初心者と学ぶGraphQL
https://qiita.com/SiragumoHuin/items/cc58f456bc43a1be41b4

GraphQLのAPIをNode.js + Express + MySQLで試してみた
https://www.codit.work/notes/0h9b56uxn7vdv6xp07u4/

library

webonyx/graphql-php
https://chrome.google.com/webstore/detail/chromeiql/fkkiamalmpiidkljmicmjfbieiclmeij

graphql-php
https://webonyx.github.io/graphql-php/type-system/input-types/

sample

graphql-sample https://github.com/kazuhei/graphql-sample

Blog Example
https://github.com/webonyx/graphql-php/tree/master/examples/01-blog

GraphQLのコンポーネント

スキーマ言語

  • Type(型)
    • リソースに対するインタフェースを記述するだけ
    • null可能性の区別がある
  • Field(名前: 型名)

クエリ言語

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment