gql added uuid to source (paragraph)
This commit is contained in:
parent
4744496526
commit
de193b08b6
@ -64,6 +64,7 @@ type Entite implements NodeInterface {
|
||||
|
||||
type Source {
|
||||
id: Int!
|
||||
uuid: String!
|
||||
audios: [Filefield]
|
||||
date: Date
|
||||
documents: [Filefield]
|
||||
|
@ -600,6 +600,11 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
||||
->map('entity', $builder->fromParent())
|
||||
);
|
||||
|
||||
$registry->addFieldResolver('Source', 'uuid',
|
||||
$builder->produce('entity_uuid')
|
||||
->map('entity', $builder->fromParent())
|
||||
);
|
||||
|
||||
$registry->addFieldResolver('Source', 'description',
|
||||
$builder->produce('property_path')
|
||||
->map('type', $builder->fromValue('entity:paragraph'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user