mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
message type definition
This commit is contained in:
parent
730e15a9ea
commit
481158f815
@ -2,8 +2,14 @@
|
|||||||
# room: _RoomFilter
|
# room: _RoomFilter
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
enum _MessageOrdering {
|
||||||
|
createdAt_asc
|
||||||
|
createdAt_desc
|
||||||
|
}
|
||||||
|
|
||||||
type Message {
|
type Message {
|
||||||
id: ID!
|
id: ID!
|
||||||
|
indexId: String!
|
||||||
createdAt: String
|
createdAt: String
|
||||||
updatedAt: String
|
updatedAt: String
|
||||||
|
|
||||||
@ -26,5 +32,10 @@ type Mutation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Query {
|
type Query {
|
||||||
Message(roomId: ID!): [Message]
|
Message(
|
||||||
|
roomId: ID!,
|
||||||
|
first: Int
|
||||||
|
offset: Int
|
||||||
|
orderBy: [_MessageOrdering]
|
||||||
|
): [Message]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user