Skip to content

Commit c7ceaf8

Browse files
authored
Update README.md
Fixes #9
1 parent 0d969c1 commit c7ceaf8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,18 @@ Type Safe Arguments
254254
-------------------
255255
The JPA Schema builder will derive QraphQL scalar types from JPA model attributes. At runtime, it will validate provided values against the schema. Enum Java types are also translated to QraphQL Enum scalar type.
256256

257+
Variable Parameter Bindings
258+
-------------------
259+
Just like a REST API, it is possible to pass variable arguments to an endpoint in a GraphQL API. By declaring the arguments in the query defintion, typechecking happens automatically. Each variable argument must be named with `$` prefix and have a type. To use variable inside query, simply reference it in any criteria expressions. Each variable reference will be resolved to its value during query execution, for example:
260+
261+
{
262+
"query": "query HumanById($id: Long!) {
263+
Human(id: $id) { name }
264+
}",
265+
"variables": {"id": 1}
266+
}
267+
268+
257269
Pagination
258270
----------
259271
GraphQL does not specify any language or idioms for performing Pagination. This library provides support for pageable queries with `page` argument on pluralized query wrapper.

0 commit comments

Comments
 (0)