You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new EntityRefObjectType([
'name' => 'Product',
'keyFields' => ['id'],
'fields' => [
'id' => fn() => [
'description' => 'The ID of the Product.',
'type' => Type::nonNull(Type::int()),
],
'accessorySlot' => fn() => [
'description' =>
'Accessory alternatives that share a product type and or fiter set and or classification',
'type' => $this->createConfiguratorSlotType(),
'resolve' => $this->productAccessorySlotResolver,
'args' => [ 'criteria' => [
'name' => 'AccessorySlotCriteria',
'description' => 'The criteria an accessory slot should satisfy.',
'keyFields' => ['productTypeId limit classificationId filterSetId'],
'fields' => [
'productTypeId' => fn() => [
'description' => "The accessory's product type.",
'type' => Type::nonNull(Type::int()),
],
],
] ]
]
]
]);
And I this field (accessorySlot) Im contributing requires extra args namely productTypeId to be resolved. I used this configuration, but it seems that the args from the accessorySlot property are not picked up in the GraphQL schema
Is this intended behavior or is it simply not build yet? If the latter can you point me in the right direction to contribute this feature?
The text was updated successfully, but these errors were encountered:
Hi I have a product entity
And I this field (accessorySlot) Im contributing requires extra args namely productTypeId to be resolved. I used this configuration, but it seems that the args from the accessorySlot property are not picked up in the GraphQL schema
Is this intended behavior or is it simply not build yet? If the latter can you point me in the right direction to contribute this feature?
The text was updated successfully, but these errors were encountered: