graphql-python / graphql-python/graphql-core-legacy

Help with custom Directives

Open
#151 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
372
Forks
175
PR merge metrics
No merged PRs in 30d

Description

Hello to the community, I would like to know if it is not possible to define custom directives, according to the documentation of the **GraphQLSchema** class if possible, by explicitly declaring them in the schema constructor like this:

```python
MyAppSchema = GraphQLSchema(
...
directives=specified_directives.extend([MyCustomerDirective]),
)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the GraphQLSchema documentation and the schema constructor example in the issue. Check how specified_directives and MyCustomerDirective are represented and whether custom directives are covered by existing tests or examples. Done would require a clearly defined, supported behavior and corresponding documentation or tests, but this issue does not name files or a concrete change.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, python
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.