-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
<?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 need it for code generation on the front end
Metadata
Metadata
Assignees
Labels
No labels