Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/howto/custom_field_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class LandingPageGraphQLConfigurationPass implements CompilerPassInterface
'definition_type' => 'MyCustomFieldDefinition',
'value_resolver' => 'field.someProperty'
];
$container->setParameter('ezplatform_graphql.schema.content.mapping.field_definition_type', $mapping);
}
}
```
Expand Down Expand Up @@ -189,4 +190,4 @@ Two variables are available in the resolver's expression:
- `field` is the current field, as an extension of the API's Field object that proxies properties requests to the Field Value
- `content` is the resolved content item's `ContentInfo`.

`RelationFieldValueBuilder` or `SelectionFieldValueBuilder` can be used as examples.
`RelationFieldValueBuilder` or `SelectionFieldValueBuilder` can be used as examples.