Add missing subselection to query, update tests
This commit is contained in:
parent
ea43b32a75
commit
591c922c98
|
|
@ -5,7 +5,11 @@ query MyActivityQuery {
|
||||||
id
|
id
|
||||||
title
|
title
|
||||||
contents
|
contents
|
||||||
type
|
type {
|
||||||
|
id
|
||||||
|
type
|
||||||
|
category
|
||||||
|
}
|
||||||
slug
|
slug
|
||||||
bookmarks {
|
bookmarks {
|
||||||
id
|
id
|
||||||
|
|
@ -13,11 +17,6 @@ query MyActivityQuery {
|
||||||
note {
|
note {
|
||||||
id
|
id
|
||||||
text
|
text
|
||||||
}
|
|
||||||
instrument {
|
|
||||||
id
|
|
||||||
type
|
|
||||||
contents
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
from graphene import relay
|
from graphene import relay
|
||||||
from graphene_django.filter import DjangoFilterConnectionField
|
from graphene_django.filter import DjangoFilterConnectionField
|
||||||
|
|
||||||
from assignments.models import StudentSubmission
|
|
||||||
from assignments.schema.types import AssignmentNode, StudentSubmissionNode
|
from assignments.schema.types import AssignmentNode, StudentSubmissionNode
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,3 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
#
|
|
||||||
# ITerativ GmbH
|
|
||||||
# http://www.iterativ.ch/
|
|
||||||
#
|
|
||||||
# Copyright (c) 2019 ITerativ GmbH. All rights reserved.
|
|
||||||
#
|
|
||||||
# Created on 2019-04-11
|
|
||||||
# @author: chrigu <christian.cueni@iterativ.ch>
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
|
@ -119,6 +110,29 @@ class MyAssignemntsText(DefaultUserTestCase):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
myInstrumentActivity {
|
||||||
|
edges {
|
||||||
|
node {
|
||||||
|
id
|
||||||
|
title
|
||||||
|
contents
|
||||||
|
type {
|
||||||
|
id
|
||||||
|
type
|
||||||
|
category
|
||||||
|
}
|
||||||
|
slug
|
||||||
|
bookmarks {
|
||||||
|
id
|
||||||
|
uuid
|
||||||
|
note {
|
||||||
|
id
|
||||||
|
text
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue