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

feat: auto generate GQL filters schema #562

Open
bonustrack opened this issue Mar 10, 2023 · 0 comments
Open

feat: auto generate GQL filters schema #562

bonustrack opened this issue Mar 10, 2023 · 0 comments
Assignees

Comments

@bonustrack
Copy link
Member

Currently we need to type schema for any filter like this:

input VoteWhere {
id: String
id_in: [String]
ipfs: String
ipfs_in: [String]
space: String
space_in: [String]
voter: String
voter_in: [String]
proposal: String
proposal_in: [String]
reason: String
reason_not: String
reason_in: [String]
reason_not_in: [String]
app: String
app_not: String
app_in: [String]
app_not_in: [String]
created: Int
created_in: [Int]
created_gt: Int
created_gte: Int
created_lt: Int
created_lte: Int
vp: Float
vp_in: [Float]
vp_gt: Float
vp_gte: Float
vp_lt: Float
vp_lte: Float
vp_state: String
vp_state_in: [String]
}

Instead we should just define the GQL type schema and auto generate the filters, similar than on Checkpoint.

@ChaituVR ChaituVR self-assigned this Mar 13, 2023
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