Skip to content

Question about where to modify code to add resolvers? #1289

Open
@laurencefass

Description

@laurencefass

I am having difficulty locating the correct place to add resolvers and I think the interface may have shifted

I am working from here: https://drupal-graphql.gitbook.io/graphql/queries/nodes

Section AddTheSchemaDeclaration provides a filename to work with.

Section AddingResolvers doesnt specify which file to update.

If I look into both of your default module examples I see:

graphql_example/...src/Plugin/Schema/ExampleSchema.php contains a getResolverRegistry() function.

graphqul_composable/......src/Plugin/Schema/ComposeableSchemaExample does NOT contain a getResolverRegistry() function.

However ComposableSchemaExampleExtension.registerResolvers() does appear to have similar function to getResolverRegistry() mentioned in the docs.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions