Skip to content
Discussion options

You must be logged in to vote

@peteeckel Answers to some of your issues / questions:

  1. Problem with filtering on annotations for a model
    I'll have to look into supporting this, will probably have to skip it in the autotype_decorator and have it defined explicitly in your GraphQL code.
  2. Problem with custom fields
    If you have a custom type defined for them you can just add a @strawberry.type to it (see: https://github.com/netbox-community/netbox/blob/feature/netbox/ipam/graphql/mixins.py#L13) or in the typing you can just define the field return type (prefix: str)
class AggregateType(NetBoxObjectType, BaseIPAddressFamilyType):
    prefix: str
  1. @autotype_decorator fails with the following error for these fields:
    I think …

Replies: 12 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by peteeckel
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@peteeckel
Comment options

Comment options

You must be logged in to vote
1 reply
@peteeckel
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@peteeckel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants