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

Query service, add query filter for virtual fields and sortable #1482

Open
6 of 7 tasks
jiqiang90 opened this issue Jan 8, 2023 · 2 comments
Open
6 of 7 tasks

Query service, add query filter for virtual fields and sortable #1482

jiqiang90 opened this issue Jan 8, 2023 · 2 comments

Comments

@jiqiang90
Copy link
Member

jiqiang90 commented Jan 8, 2023

Prerequisites

  • Are you running the latest version(s)?
  • Did you check the debugging guide?
  • Did you check the FAQs and Discussions?
  • Are you reporting to the correct repository?
  • Did you search for an existing issue or pull request?

Description

We want a feature allow user to filter the virtual fields/entity's attributes when query, for example:

we want to sort authors by the amount of books written after a certain year

type Author @entity{
  id:ID!
  books: [Book]! @derivedFrom(field:"author")
}

type Book @entity{
  id:ID!
author: Author!
year: Int!
}
  • add filter for connection fields
  • make compute column sortable

Details

These details can help to reproduce the environment the issue is occurring

Local Environment: [You can get this information from executing subql version.]
Query Version: [What is the version of the query service?]
Indexer Version: [What is the version of the indexer service?]
Network Details:

  • [Network]
  • [Block height, a block height where the issue is happening]
  • [Dictionary endpoint, if used]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Example project: [A link to a minimal example that can reproduce the issue]

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]

Any other information

Is there any other information you would like to add?

@jiqiang90 jiqiang90 mentioned this issue Jan 9, 2023
11 tasks
@jiqiang90
Copy link
Member Author

jiqiang90 commented Jan 10, 2023

@jiqiang90
Copy link
Member Author

Waiting for help on graphile/pg-aggregates#36

@jiqiang90 jiqiang90 changed the title Query service, add query filter for virtual fields Query service, add query filter for virtual fields and sortable Jan 10, 2023
@jiqiang90 jiqiang90 assigned stwiname and unassigned stwiname Jan 22, 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