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
* A view grammar fixes for the current documentation.
* Update README.md
A quick edit before sending a pull request.
* Post code review changes to documentation.
If you used DTA's installer you will have to remove the `mount_devise_token_auth_for`
48
54
line.
49
55
50
-
Here are the option for the mount method:
56
+
Here are the options for the mount method:
51
57
52
-
1.`at`: Route where the GraphQL schema will be mounted on the Rails server. In the
53
-
example your API will have this two routes `POST /api/v1/graphql_auth` and `GET /api/v1/graphql_auth`.
54
-
If no this option is not specified, the schema will be mounted at `/graphql_auth`.
55
-
1.`operations`: Specifying this one is optional. Here you can override default
58
+
1.`at`: Route where the GraphQL schema will be mounted on the Rails server. In this example your API will have these two routes: `POST /api/v1/graphql_auth` and `GET /api/v1/graphql_auth`.
59
+
If this option is not specified, the schema will be mounted at `/graphql_auth`.
60
+
1.`operations`: Specifying this is optional. Here you can override default
56
61
behavior by specifying your own mutations and queries for every GraphQL operation.
57
62
Check available operations in this file [mutations](https://github.com/graphql-devise/graphql_devise/blob/b5985036e01ea064e43e457b4f0c8516f172471c/lib/graphql_devise/rails/routes.rb#L19)
58
63
and [queries](https://github.com/graphql-devise/graphql_devise/blob/b5985036e01ea064e43e457b4f0c8516f172471c/lib/graphql_devise/rails/routes.rb#L41).
59
-
All mutations and queries are build so you can extend default behavior just by extending
64
+
All mutations and queries are built so you can extend default behavior just by extending
60
65
our default classes and yielding your customized code after calling `super`, example
The main reason for this difference is just to make it easier to have both Standard `Devise` and this gem running at the same time.
112
-
Check [these files](app/views/graphql_devise/mailer) to see the available helper methods you can use in the views.
117
+
Check [these files](app/views/graphql_devise/mailer) to see the available helper methods you can use in your views.
113
118
114
119
### Authenticating Controller Actions
115
120
Just like with Devise or DTA, you will need to authenticate users in your controllers.
@@ -147,7 +152,7 @@ the confirmation and reset password email urls. There is no limitation for makin
147
152
requests using the `GET` method on the Rails side, but looks like there might be a limitation
148
153
on the [Apollo Client](https://www.apollographql.com/docs/apollo-server/v1/requests/#get-requests).
149
154
150
-
We will continue to build better docs for the gem after this first release, but on the mean time
155
+
We will continue to build better docs for the gem after this first release, but in the mean time
151
156
you can use [our specs](https://github.com/graphql-devise/graphql_devise/tree/b5985036e01ea064e43e457b4f0c8516f172471c/spec/requests) to better understand how to use the gem.
152
157
Also, the [dummy app](https://github.com/graphql-devise/graphql_devise/tree/b5985036e01ea064e43e457b4f0c8516f172471c/spec/dummy) used in our specs will give you
153
158
a clear idea on how to configure the gem on your Rails application.
0 commit comments