Open Eraldo opened 5 months ago
Hmm that's already a feature. Is it not working for Django types?
https://play.strawberry.rocks/?gist=5a61a5784811fa8f38d67f259ecde617
@brunodantas I think the issue is with overriding another type's file (DjangoFileType
in this case)
For me this seems to be a strawberry-django
issue. The django orm extension should respect field overrides when building the fields dict. Should we move it over? @bellini666 @patrick91
For me this seems to be a
strawberry-django
issue. The django orm extension should respect field overrides when building the fields dict. Should we move it over? @bellini666 @patrick91
Actually, I think it is what @patrick91 said.
That DjangoFileType is a general @strawberry.type
inside strawberry-django. Here is the reproduction in the playground: https://play.strawberry.rocks/?gist=ef717257ca7a2db9085bbe1a44da5192
In this case, marking bar
as Private
in BarType
should exclude it from the schema, while still showing on FooType
in that example
Describe the Bug/Feature
How to exclude a field from a type?
Current: The
path
field still shows up in the schema. Expected: No morepath
field exposed.Upvote & Fund