Skip to main content

talawa-api / Exports / resolvers/Query/posts

Module: resolvers/Query/posts

Table of contents

Variables

Variables

posts

Const posts: QueryResolvers["posts"]

The query will fetch all the Posts in specified order from the database.

Param

Param

An object that contains orderBy field to get the data in specified order.

Remarks

The query function uses getSort() function to sort the data in specified order.

Defined in

src/resolvers/Query/posts.ts:11