-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: posts api #4075
feat: posts api #4075
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There are lots of "tidy" changes in this PR which you can ignore |
Squawk Report✅ 0 violations across 1 file(s)
|
userId: loginUser.id, | ||
}) | ||
|
||
expect(response.body.data.posts.errorCodes).to.eql(['BAD_REQUEST']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newbie question. What is the invalid arg here ?? I see a similar request below, testing for an empty array.. Is 100
the invalid arg here ?
it('should return empty array', async () => {
const response = await graphqlRequest(query, '', {
first: 10,
userId: loginUser.id,
})
expect(response.body.data.posts.edges).to.be.empty
})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @pradeepmurugesan , sorry for the late reply.
I should be more clear here but yes 100 is invalid because the maximum number of posts allowed to requests a time is 50.
Post
a public link omnivore.app/list/userId/posts/id which omnivore user shares through social apps
List
a link omnivore.app/list/userId/posts contains a list of "Post" shared by the user which user can share through social apps.
It can be accessed if user make the profile public
Changes