Skip to content

Commit e4a975e

Browse files
committed
improve documentation of what the plug does
1 parent b10543b commit e4a975e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/uinta/plug.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ if Code.ensure_loaded?(Plug) do
1616
aggregator parse the fields. To do this, pass `json: true` in the options
1717
when calling the plug.
1818
19+
Finally, GraphQL requests will replace `POST /graphql` with the GraphQL
20+
operation type and name like `QUERY getUser` or `MUTATION createUser` if an
21+
operation name is provided. This will give you more visibility into your
22+
GraphQL requests without having to log out the entire request body or go
23+
into debug mode. If desired, the GraphQL variables can be included in the
24+
log line as well.
25+
1926
## Installation
2027
2128
To install this, find this line (typically in `YourApp.Endpoint`):

0 commit comments

Comments
 (0)