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
Feature Request: Add Support for Selecting Specific Fields in Prisma Python #960
Comments
prisma/schema.prisma
Run
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Currently, when using Prisma Python, there is no direct support for selecting specific fields from a database query result.
Suggested solution
See: Prisma Docs : Select fields
I suggest adding support for the select feature in Prisma Python, similar to the existing functionality in other Prisma client libraries.
For example:
This would allow users to retrieve only the specified fields from the database query result, providing more flexibility and efficiency in data retrieval.
Alternatives
Without support for the select feature, users are forced to retrieve the entire record from the database and manually extract the required fields, which can be cumbersome and inefficient, especially for large datasets.
Additional context
Adding support for the select feature in Prisma Python would align the functionality of the Python client with other Prisma client libraries, providing a consistent experience across different programming languages. This feature would greatly enhance the usability and versatility of Prisma Python for data retrieval tasks.
The text was updated successfully, but these errors were encountered: