posts
talawa-api • Docs
talawa-api / resolvers/User/posts / posts
Variable: posts
> const
posts: UserResolvers
["posts"
]
Resolver function to fetch and return posts created by a user from the database. This function implements cursor-based pagination using GraphQL connection arguments.
Param
An object that is the return value of the resolver for this field's parent.
Param
Arguments passed to the resolver. These should include pagination arguments such as first
, last
, before
, and after
.
Throws
GraphQLError Throws an error if the provided arguments are invalid.