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
<?php
declare(strict_types=1);
namespace Admin\Presentation\GraphQL\Type;
use Admin\Presentation\GraphQL\Type\ChatTypeFiltersEnum;
#[Type]
enum CommunityChatTypeFilterEnum: string {
case DIRECT = ChatTypeFiltersEnum::DIRECT->value;
case GROUP = ChatTypeFiltersEnum::GROUP->value;
case PUBLIC_CITY = ChatTypeFiltersEnum::PUBLIC_CITY->value;
case PUBLIC_HOTEL = ChatTypeFiltersEnum::PUBLIC_HOTEL->value;
};
I have this enum. Can I include it into graphql schema without inserting it into query or mutation.
If I insert it into query or mutation the enum appears in the schema.
But if I don't insert it into query or mutation schema does not have this enum...
I thought all types in the namespace were included in the schema, regardless of whether they are included in an operation. But I haven't confirmed that.
Activity
oojacoboo commentedon Mar 7, 2025
I thought all types in the namespace were included in the schema, regardless of whether they are included in an operation. But I haven't confirmed that.
oojacoboo commentedon Apr 19, 2026
@drmax24 is this still an issue, or can this be closed?