Skip to content

Add GraphQLContext derive #329

Open
Open
@LegNeato

Description

@LegNeato

Is your feature request related to a problem? Please describe.
Contexts have some boilerplate, you have to implement juniper::Context which 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.

Metadata

Metadata

Assignees

Labels

easyenhancementImprovement of existing features or bugfixk::apiRelated to API (application interface)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions