drupal-graphql / drupal-graphql/graphql

Question about where to modify code to add resolvers?

Open
#1,289 0 comments 0 reactions 0 assignees View on GitHub
4.x documentation
Dominant language
PHP
Stars
287
Forks
198
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.