mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
backend allow room filter by id for single rooms
This commit is contained in:
parent
f05a0bc544
commit
5f4a973e2a
@ -13,8 +13,8 @@ export const createRoomMutation = () => {
|
||||
|
||||
export const roomQuery = () => {
|
||||
return gql`
|
||||
query {
|
||||
Room {
|
||||
query Room($first: Int, $offset: Int, $id: ID) {
|
||||
Room(first: $first, offset: $offset, id: $id) {
|
||||
id
|
||||
roomId
|
||||
roomName
|
||||
|
||||
@ -24,5 +24,5 @@ type Mutation {
|
||||
}
|
||||
|
||||
type Query {
|
||||
Room: [Room]
|
||||
Room(id: ID): [Room]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user