Skip to content

Conversation

@abdulrahman1s
Copy link
Collaborator

Description:

  • Added PDF and e-book tags in the table. (b578ca9)
  • Implemented filtering options to filter by PDF and e-book versions.

Help needed

I encountered a challenge while implementing an additional filter to distinguish between PDF and eBook versionsn. Prisma’s documentation states that filtering within a JSON array of objects is possible, but this functionality doesn't appear to be supported in PostgreSQL (see: 1 - 2). While Prisma allows filtering by comparing entire objects within a JSON array, this approach isn’t feasible for our use case. Filtering the data after retrieval isn’t an option either, as it would conflict with the pagination logic.
An alternative solution could be creating a separate model for book versions, but this would likely require a database migration.

Let me know If I’ve overlooked any potential solutions, I’d appreciate any suggestions. Thanks!

@vercel
Copy link

vercel bot commented Jan 31, 2025

@abdulrahman1s is attempting to deploy a commit to the DigitalSeem's projects team on Vercel, but is not a member of this team. To resolve this issue, you can:

  • Make your repository public. Collaboration is free for open source and public repositories.
  • Add @abdulrahman1s as a member. A Pro subscription is required to access Vercel's collaborative features.
    • If you're the owner of the team, click here and add @abdulrahman1s as a member.
    • If you're the user who initiated this build request, click here to request access.
    • If you're already a member of the DigitalSeem's projects team, make sure that your Vercel account is connected to your GitHub account.

To read more about collaboration on Vercel, click here.

@abdulrahman1s abdulrahman1s changed the title feat: add versions column Add versions column & filter by PDF, E-book Jan 31, 2025
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

Successfully merging this pull request may close these issues.

2 participants