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? #1140

Open
jsakars opened this issue Oct 6, 2023 · 0 comments
Open

PHP attribute field definition for not null? #1140

jsakars opened this issue Oct 6, 2023 · 0 comments

Comments

@jsakars
Copy link

jsakars commented Oct 6, 2023

Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes/no
Version/Branch 1.0.0

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?

References webonyx/graphql-php#1462

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

1 participant