# Post Mutations

These are the mutations defined under post gql module, things related to post querying can be found here partially

# postOpened

    postOpened(postId: Int): Boolean
1

Mutation to log the user interaction with a post item. This could be fired when user showed more than average interest in a post.

# postLiked

    postLiked(postId: Int): Boolean
1

Mutation to log the user interaction with a post item. This could be fired when user showed huge interest in a post.

# postDisLiked

    postDisLiked(postId: Int): Boolean
1

Mutation to log the user interaction with a post item. This could be fired when user shows a distaste for a content.

# postUnDisLiked

    postUnDisLiked(postId: Int): Boolean
1

Mutation to undo the operation of the postDisLiked mutation

# postUnLiked

    postUnLiked(postId: Int): Boolean
1

Mutation to undo the operation of the postLiked mutation

# postImpressionReceived

    postImpressionReceived(postId: Int, ms: Int) : Boolean 
1

Mutation to log user interaction with a post item while scrolling though a list of them or at a glance

# Graphql Schema

gql schema for this model goes

extend type Mutation { 
    postOpened(postId: Int): Boolean,
    postLiked(postId: Int): Boolean,
    postDisLiked(postId: Int): Boolean,
    postUnDisLiked(postId: Int): Boolean,
    postUnLiked(postId: Int): Boolean,
    postImpressionReceived(postId: Int, ms: Int) : Boolean 
}
1
2
3
4
5
6
7
8