Skip to main content

getPostsById method

[String] getPostsById(

  1. [[String] orgId, ]
  2. [[String?] after, ]
  3. [[String?] before, ]
  4. [[int?] first, ]
  5. [[int?] last, ]

)

Getting Posts by Id.

params:

  • orgId: The organisation id
  • after: The cursor after which the posts are to be fetched
  • before: The cursor before which the posts are to be fetched
  • first: The number of posts to be fetched from the start
  • last: The number of posts to be fetched from the end

returns:

  • String: The query related to gettingPostsbyId

Implementation

String getPostsById(
String orgId,
String? after,
String? before,
int? first,
int? last,
)
  1. talawa
  2. post_queries
  3. PostQueries
  4. getPostsById method
PostQueries class