mirumee/ariadne

Validate that root resolvers are set

Open

#187 opened on May 29, 2019

 (2 comments) (0 reactions) (0 assignees)Python (194 forks)batch import
enhancementhelp wantedto do

Repository metrics

Stars
 (2,342 stars)
PR merge metrics
 (Avg merge 12d) (3 merged PRs in 30d)

Description

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.

Contributor guide