You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i've spend a week already to find some solution for this.
i have next mongo models:
class Inner(EmbeddedDocument):
meta = {
'strict': False,
}
foo = fields.StringField()
bar = fields.StringField()
class Outer(Document):
meta = {
"collection": "outer",
"auto_create_index": False,
'strict': False,
}
fizz = fields.StringField(unique=True)
inner = fields.EmbeddedDocumentField(Inner, default=None)
Graphene nodes:
class InnerGraph(MongoengineObjectType):
class Meta:
model = Inner
interfaces = (relay.Node,)
class OuterGraph(MongoengineObjectType):
class Meta:
model = Outer
interfaces = (relay.Node,)
And graphene query
class Query(ObjectType):
patient_list = MongoengineConnectionField(OuterGraph)
# some resolver - removing it change nothing
Outer entity working fine, as expected, no problems.
But inner entity has id field (which is not exists in first place) And no other fields fixed.
i've spend a week already to find some solution for this.
i have next mongo models:
Graphene nodes:
And graphene query
Outer entity working fine, as expected, no problems.
But inner entity has
id
field (which is not exists in first place)And no other fieldsfixed.Output in docs. Query -> Outer (edges, node) -> inner (type: InnerGraph)
Any ideas, how to make this combination work?
The text was updated successfully, but these errors were encountered: