Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1064f73

Browse files
authored
Update README.md
1 parent 72361c6 commit 1064f73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,16 @@ RailsGraphQL.postman_collection.json
6262
that you can import in [Postman](https://www.getpostman.com/) and send requests that I already created for you.
6363

6464
But if you prefer using something new, cool and writing queries on your own with help of autocomplete, then just start rails app, open your favorite browser and navigate to http://localhost:3000/graphiql
65+
6566
GraphiQL is an in-browser IDE for exploring GraphQL. You can read more about GraphiQL in this [post](https://medium.com/the-graphqlhub/graphiql-graphql-s-killer-app-9896242b2125) that Clay Allsopp wrote.
67+
6668
By the default for this project graphiql is set to do the quering only, but if you want do see how mutations work then open routes.rb file in root_foler/config and change line 9, graphql_path to '/graphql/mutations' and restart the app.
6769

6870

6971
<h2> A bit more about the project... </h2>
7072
For GraphQL I've used a standard [graphql-ruby](https://github.com/rmosolgo/graphql-ruby) gem. All of GraphQL configuration files can be found in app/models/graph folder.
73+
7174
For communication between client and server this app uses [apollo-client](https://github.com/apollographql/apollo-client).
7275
There is only two queries written for client app, one for quering movies by id and one for creating a new movie.
76+
7377
I've added optimistic response to mutation for creating a new movie. Because apollo caches request to make our apps faster and more fluid, we have to tell apollo that mutation happened and that something has changed. You can read more about this subject [here](http://dev.apollodata.com/react/optimistic-ui.html#optimistic-advanced)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /