We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, thank you for the great library again.
I would like to propose a new API only, which is the inversion of skip.
only
skip
The use case: We have a database table and GraphQL schema has "virtual" columns.
GraphQL:
type User { id: ID! firstName: String lastName: String fullName: String }
Database:
- users: - id - firstName - lastName
Resolver:
const UserResolver = { lastName(root: User) { return `${user.firstName} ${user.lastName}` } }
In this case, it would be really helpful if we have only
fieldsToList(info, { only: ['id', 'firstName', 'lastName'], })
If you are okay, I'll create a PR for this.
Thanks
The text was updated successfully, but these errors were encountered:
Sounds great, I was missing this project for a while, so if it is still n open proposal - P>R is welcomed
Sorry, something went wrong.
No branches or pull requests
Hi, thank you for the great library again.
I would like to propose a new API
only
, which is the inversion ofskip
.The use case: We have a database table and GraphQL schema has "virtual" columns.
GraphQL:
Database:
Resolver:
In this case, it would be really helpful if we have
only
If you are okay, I'll create a PR for this.
Thanks
The text was updated successfully, but these errors were encountered: