Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP attribute field definition for not null? #1462

Closed
jsakars opened this issue Oct 6, 2023 · 3 comments
Closed

PHP attribute field definition for not null? #1462

jsakars opened this issue Oct 6, 2023 · 3 comments

Comments

@jsakars
Copy link

jsakars commented Oct 6, 2023

Hi!

#[GQL\Field(type: Type::STRING)] can be used to specify that given input field is a string - nullable

In order to define not null string the only option is: #[GQL\Field(type: 'String!')]

Is there a smoother option rather then using string 'String!? Something like #[GQL\Field(type: Type::STRING!)] maybe?

@spawnia
Copy link
Collaborator

spawnia commented Oct 6, 2023

This library does not implement any PHP attributes, your issue belongs elsewhere.

@spawnia spawnia closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2023
@jsakars
Copy link
Author

jsakars commented Oct 6, 2023

@spawnia what about these ones then? Those are used in overblog/GraphQLBundle => see here and here

@spawnia
Copy link
Collaborator

spawnia commented Oct 6, 2023

Those are constants which hold a string. Looks like your issue belongs into overblog/GraphQLBundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants