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

GraphQL API: season を Input Objects 化したい #3690

Open
shimbaco opened this issue Oct 24, 2021 · 0 comments
Open

GraphQL API: season を Input Objects 化したい #3690

shimbaco opened this issue Oct 24, 2021 · 0 comments

Comments

@shimbaco
Copy link
Member

現状:

argument :seasons, [String], required: false

こんな感じにしたい:

argument :seasons, [Types::Season], required: false

class Types::Season < Types::BaseInputObject
  argument :year, Integer, required: true
  argument :name, Types::SeasonName, required: false
end

class Types::SeasonName < Types::BaseEnum
  value "WINTER", ""
  value "SPRING", ""
  value "SUMMER", ""
  value "AUTUMN", ""
end
@shimbaco shimbaco transferred this issue from annict/annict-archived Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant