Queries
type Article implements NodeInterface {
...
title: String!
...
}$registry->addFieldResolver('Article', 'title',
$builder->produce('entity_label')
->map('entity' => $builder->fromParent())
);query {
article(id:1) {
title
}
}Last updated
Was this helpful?