Provide a possibility to alter schema (from this and other modules).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

czigor created an issue. See original summary.

czigor’s picture

First allow altering the graphql schema types of content entity fields and config entity properties.

czigor’s picture

Other possibilities to alter the schema:

  1. Use AlterSchemaDataEvent provided by the graphql module like the alterable_composable schema does. This would allow us to use just one event instead of 3 alter hooks and also would be more general. However the event passes the schema as a SDL string which is hard to handle.
  2. Hook into CoreComposableSchema::getSchema() after the AST document is created. This has the same pros and cons as the event approach above. At least as far as I understand AST is not meant for schema manipulation.

  • czigor committed 25382889 on 1.0.x
    [#3553404] feat: Allow altering schema
    
czigor’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.