2017-05-21から1日間の記事一覧

RailsでGraphQLを使う

結構使いやすくなっていたので紹介 セットアップ # Gemfile gem 'graphql' rails generate graphql:install まず導入 基本的な構成と、graphiql(GraphQLのクライアントをRailsにマウントするやつ)が入る http://localhost:3000/graphiql サンプルフィールド…

今日の雑記はgraphql-activerecord

github.com このgem使ってるんだけど、 RuntimeError (Could not locate GraphQL type for model Character) “GraphQL::Models::CharacterTypeはなしんこなしなしだぞ” って言われる。 graphql-activerecord/activerecord.rb at master · goco-inc/graphql-a…