mirumee/ariadne

Validate that root resolvers are set

Aperta

#187 aperta il 29 mag 2019

 (2 commenti) (0 reazioni) (0 assegnatari)Python (194 fork)batch import
enhancementhelp wantedto do

Metriche repository

Star
 (2342 stelle)
Metriche merge PR
 (Merge medio 12g) (3 PR mergiate in 30 g)

Descrizione

Ariadne's make_executable_schema should by default check if fields on Query, Mutation and Subscription have set resolvers, and raise ValueError with appropriate type and field names to save dev from forgetting about those.

This option should be disableable in the case when API relies heavily on root_value or its only to keep schema browseable.

Guida contributor