From 7fa3f21e30f1cf4de0723054ed77fbc489a927dc Mon Sep 17 00:00:00 2001 From: peet Date: Sun, 16 Jan 2022 17:32:34 +0100 Subject: [PATCH] Added queries for Chats --- app/src/main/graphql/org/ddnss/sfs/noise/GetChats.graphql | 6 ++++++ .../graphql/org/ddnss/sfs/noise/GetGroupChats.graphql | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 app/src/main/graphql/org/ddnss/sfs/noise/GetChats.graphql create mode 100644 app/src/main/graphql/org/ddnss/sfs/noise/GetGroupChats.graphql diff --git a/app/src/main/graphql/org/ddnss/sfs/noise/GetChats.graphql b/app/src/main/graphql/org/ddnss/sfs/noise/GetChats.graphql new file mode 100644 index 0000000..acb8bd9 --- /dev/null +++ b/app/src/main/graphql/org/ddnss/sfs/noise/GetChats.graphql @@ -0,0 +1,6 @@ +query GetChats($id: ID!, $pw: String!){ + chats(user: $id, passwordHash: $pw){ + id + users + } +} \ No newline at end of file diff --git a/app/src/main/graphql/org/ddnss/sfs/noise/GetGroupChats.graphql b/app/src/main/graphql/org/ddnss/sfs/noise/GetGroupChats.graphql new file mode 100644 index 0000000..1066092 --- /dev/null +++ b/app/src/main/graphql/org/ddnss/sfs/noise/GetGroupChats.graphql @@ -0,0 +1,8 @@ +query GetGroupChats($id: ID!, $pw: String!){ + groupChats(user: $id, passwordHash: $pw){ + id + users + title + description + } +} \ No newline at end of file