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 {
|
type Source {
|
||||||
id: Int!
|
id: Int!
|
||||||
|
uuid: String!
|
||||||
audios: [Filefield]
|
audios: [Filefield]
|
||||||
date: Date
|
date: Date
|
||||||
documents: [Filefield]
|
documents: [Filefield]
|
||||||
|
@ -600,6 +600,11 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|||||||
->map('entity', $builder->fromParent())
|
->map('entity', $builder->fromParent())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$registry->addFieldResolver('Source', 'uuid',
|
||||||
|
$builder->produce('entity_uuid')
|
||||||
|
->map('entity', $builder->fromParent())
|
||||||
|
);
|
||||||
|
|
||||||
$registry->addFieldResolver('Source', 'description',
|
$registry->addFieldResolver('Source', 'description',
|
||||||
$builder->produce('property_path')
|
$builder->produce('property_path')
|
||||||
->map('type', $builder->fromValue('entity:paragraph'))
|
->map('type', $builder->fromValue('entity:paragraph'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user