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’m playing with private fields with MongoEngine and Graphene-Mongo like this:
classMyDocument(Document):
# define a “private” field (with underscore)# but set the database field without the underscore:_private=StringField(db_field="private")
classMyType(MongoengineObjectType):
classMeta:
model=MyDocument
And… the generated MyType has a field named Private (not private).
That make me ask 2 questions:
It seems the conversion snake_case to camelCase does not make any special case for leading underscore: is it normal?
Why not consider the database field?
The text was updated successfully, but these errors were encountered:
Hello,
I’m playing with private fields with MongoEngine and Graphene-Mongo like this:
And… the generated
MyType
has a field namedPrivate
(notprivate
).That make me ask 2 questions:
The text was updated successfully, but these errors were encountered: