You are here

public function ResolverBuilder::produce in GraphQL 8.4

Instantiate a data producer proxy to lazy resolve a data producer plugin.

Parameters

string $id:

array $config:

Return value

\Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerProxy

File

src/GraphQL/ResolverBuilder.php, line 36

Class

ResolverBuilder
Wires and maps different resolvers together to build the GraphQL tree.

Namespace

Drupal\graphql\GraphQL

Code

public function produce($id, array $config = []) {
  return DataProducerProxy::create($id, $config);
}