osohq / oso

Deprecated: See README
Apache License 2.0
3.47k stars 178 forks source link

Guide on implementing new data filtering adapters #1551

Open enheit opened 2 years ago

enheit commented 2 years ago

Hey, guys!

I try to integrate Oso into my app which uses prisma ORM to communicate with database. After reading documentation I noticed the following sentence:

The mapping from Polar to a query is defined by an Adapter. If an adapter exists for your ORM or database you can use it, otherwise you may have to implement your own.

I'm currently trying to implement this adapter myself, but with limited information/examples, I don't think I'm doing it right.

So, I would like to request a guide that shows how to implement custom adapters by using Prisma or an adapter itself (implemented by Oso dev team).

Thank you, Roman

gj commented 2 years ago

Hey @enheit, a guide on implementing custom adapters is a great idea. You may've already found it, but your best bet for the time being would be to use the TypeORM adapter as an example.

Jacob-DeCrane commented 1 year ago

Has a formal guide been created for this yet?

jbwc commented 1 year ago

+1 for Prisma guide

ozankabak commented 1 year ago

We are interested in this too.

sburton84 commented 1 year ago

A guide would be good, but just including a ready-made Prisma adapter alongside the TypeORM one would be even better.

NexZhu commented 1 year ago

An EdgeDB adapter will be appreciated

kachar commented 3 months ago

+1 for Prisma