January 2019
Intermediate to advanced
460 pages
10h 33m
English
With the new profile page, we have to update our back end accordingly. Let's take a look at what needs to be done, as follows:
We will begin with the postsFeed query.
Edit the postsFeed query in the RootQuery type of the schema.js file to match the following code:
postsFeed(page: Int, limit: Int, username: String): PostFeed @auth
Here, I have added the username as an optional parameter.
Now, head over to the resolvers.js file, and take a look at the corresponding resolver function. Replace the signature of the function ...
Read now
Unlock full access