pimcore / data-hub

Data delivery & consumption platform for Pimcore.
Other
127 stars 109 forks source link

Create Data Object Variant #242

Closed kobs123 closed 4 years ago

kobs123 commented 4 years ago

Does Datahub have the functionality to create a data object variant with a mutation? I couldn't find anything about it in the documentation or the Documentation Explorer tab

julkue commented 4 years ago

Have you seen this?

https://github.com/pimcore/data-hub/blob/master/doc/graphl/Mutations.md#create-object

weisswurstkanone commented 4 years ago

I believe that there is currently no way to differentiate between regular object and variant as the o_type is not exposed in the column configurator (which I wouldn't do).

However, we could add this is as a argument somewhere around https://github.com/pimcore/data-hub/blob/75c82dbcebe109c2f3437e46cd1e8bb5df59b5ec/src/GraphQL/Mutation/MutationType.php#L190

Can you create a PR for that please ?

weisswurstkanone commented 4 years ago

Already made the change

kobs123 commented 4 years ago

Thanks!