From fd802d57fb877b6d2b9dd0395eeb5e10127c851a Mon Sep 17 00:00:00 2001 From: Myer Nore Date: Sat, 27 Jan 2018 14:05:23 -0500 Subject: [PATCH] add graphql endpoing to read chat messages from a group - closes #4 --- .../django_react_chat_example_project/chat/schema.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/django_react_chat_example_project/django_react_chat_example_project/chat/schema.py b/django_react_chat_example_project/django_react_chat_example_project/chat/schema.py index 21ac0b1..03e8278 100644 --- a/django_react_chat_example_project/django_react_chat_example_project/chat/schema.py +++ b/django_react_chat_example_project/django_react_chat_example_project/chat/schema.py @@ -11,6 +11,11 @@ class Meta: model = ChatGroup +class ChatMessageType(DjangoObjectType): + class Meta: + model = ChatMessage + + class UserType(DjangoObjectType): class Meta: model = User