Closed EstebanBorai closed 11 months ago
Now we query posts for a user from its edge which means that instead of querying posts by a user with ID user_1234 like this:
user_1234
query { posts(filter: { author_id: 'user_1234' }) { # -- snip -- } }
We will do:
query { users(filter: { id: 'user_1234' }) { # -- snip -- posts(first: 20) { id title # -- snip -- } } }
Now we query posts for a user from its edge which means that instead of querying posts by a user with ID
user_1234
like this:We will do: