strawberry-graphql/strawberry-django

Mutation filters not working

Aperta

#317 aperta il 20 lug 2023

 (5 commenti) (0 reazioni) (0 assegnatari)Python (152 fork)auto 404
documentationenhancementgood first issuehelp wanted

Metriche repository

Star
 (496 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

When specifying a mutation filter as per the docs, the filter does not appear in the generated schema:

@strawberry.type
class Mutation:
    updateFruits: List[Fruit] = mutations.update(FruitPartialInput, filters=FruitFilter)
    deleteFruits: List[Fruit] = mutations.delete(filters=FruitFilter)
  • Operating system:
  • Strawberry version (if applicable): 0.195.2

Guida contributor