-
Notifications
You must be signed in to change notification settings - Fork 441
Add GraphQLContext derive #329
Copy link
Copy link
Open
Labels
easyenhancementImprovement of existing features or bugfixImprovement of existing features or bugfixk::apiRelated to API (application interface)Related to API (application interface)
Milestone
Metadata
Metadata
Assignees
Labels
easyenhancementImprovement of existing features or bugfixImprovement of existing features or bugfixk::apiRelated to API (application interface)Related to API (application interface)
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is your feature request related to a problem? Please describe.
Contexts have some boilerplate, you have to implement
juniper::Contextwhich is usually an empty marker trait. The error message when you don't isn't obvious, see #327.Describe the solution you'd like
It might be good to have a
#[derive(GraphQLContext)that does the boilerplate for you. It won't help the error message, but perhaps when people are copying and pasting or reading docs they will be less likely to miss it.