GraphQL
In the previous chapter, we define a search
method in a DAO.
We now have to create a GraphQL query from it:
src/api/src/UseCase/User/GetUsers.php
It's simple as that! 😉
Let's take a look at the GraphQL query for the GetUsers
use case:
GraphQL query
Here we can see that:
- The enums are valid GraphQL types.
- The
items
property with thelimit
andoffset
arguments plus thecount
property come from theResultIterator
.