Renamed index to position for Post model and API

This commit is contained in:
2018-06-13 22:01:50 +02:00
parent a4fea77047
commit 91bd25ddf7
4 changed files with 52 additions and 52 deletions
+3 -3
View File
@@ -18,8 +18,8 @@ type Post {
# The post's text, which purpose depends on the kind
text: String!
# The post's index, which is used to sort posts
index: Int!
# The post's position, used for reordering
position: Int!
}
# Input for the addPost mutation
@@ -64,5 +64,5 @@ input MovePostInput {
id: String!
# Target index
targetIndex: Int!
toPosition: Int!
}