Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Help with custom Directives

Open
#151 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

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:

MyAppSchema = GraphQLSchema(
      ...
      directives=specified_directives.extend([MyCustomerDirective]),
)
Dominant language
Python
Stars
371
Forks
175
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from graphql-python/graphql-core-legacy

All issues in graphql-python/graphql-core-legacy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.