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

Make the constraints option available #3

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

hoshinotsuyoshi
Copy link
Collaborator

@hoshinotsuyoshi hoshinotsuyoshi commented Feb 26, 2024

Now you can use shorthand constraints: option if you let your argument class include GraphQL::Constraint::Directive::ConstraintArgumentKeyword helper.

for:

GraphQL::Constraint::Directive::Constraintを毎回記述する必要があり少々冗長なため、より簡潔に記述できるAPIを検討中です。
https://zenn.dev/mh4gf/articles/graphql-ruby-constraint-directive#fn-cee9-1

for "GraphQL::Constraint::Directive::Constraintを毎回記述する必要があり少々冗長なため、より簡潔に記述できるAPIを検討中です。"

see https://zenn.dev/mh4gf/articles/graphql-ruby-constraint-directive#fn-cee9-1
@hoshinotsuyoshi hoshinotsuyoshi force-pushed the constraints-option-shorthand branch from 8ed89de to 7d1d7ba Compare February 28, 2024 01:53
@hoshinotsuyoshi hoshinotsuyoshi marked this pull request as ready for review February 28, 2024 02:50
Copy link

@MH4GF MH4GF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's too awesome!!!!!!

@hoshinotsuyoshi hoshinotsuyoshi changed the base branch from add-regexp-pattern to main February 29, 2024 03:26
@hoshinotsuyoshi hoshinotsuyoshi merged commit 181636d into main Feb 29, 2024
1 check passed
@hoshinotsuyoshi hoshinotsuyoshi deleted the constraints-option-shorthand branch February 29, 2024 03:27
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

Successfully merging this pull request may close these issues.

2 participants