Storing Read-Only User Data in Sanity Data Store

5 replies
Last updated: Jul 7, 2021
Hello, do you have any thoughts in regard to Sanity Data Store? I was wondering about storing user data there like user details, or their progress made with content served from Sanity. At least for now it's not anything big nor complex, CRUD stuff. I wanted to approach the issue with Postgresql on Prisma.js, but looking more into Sanity docs made me think if there is not a better solution already in place.Any thoughts on the subject?
Jul 7, 2021, 4:07 PM
Hi!Storing user data is definitely possible, but what I'm worried about is how to make sure that users can only access their data. And I don't see how I would implement this easily with Sanity.
🤔
Jul 7, 2021, 4:48 PM
Hi
user B
, I'm using Sanity for storing read-only data only at the moment. For authentication, user management and commerce, I'm using other databases. I think it's better to use a Sanity - database hybrid as database for bigger projects
Jul 7, 2021, 5:58 PM
user A
your recommendations please..
Jul 7, 2021, 6:17 PM
Thanks a lot for your input guys 🍻
Jul 7, 2021, 7:02 PM
Means a lot
Jul 7, 2021, 7:02 PM

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?