Skip to content
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

Can provide a simplification of dgraph api? #10

Open
sessionboy opened this issue May 20, 2020 · 3 comments
Open

Can provide a simplification of dgraph api? #10

sessionboy opened this issue May 20, 2020 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@sessionboy
Copy link

sessionboy commented May 20, 2020

This repo is great, I plan to use it. But I hope it can do more.
The original dgraph api is cumbersome to use, and I always look forward to a simplified version. It might be an orm like prisma.

Although dgraph officially launched the easy-to-use GraphQL API, it is not perfect enough, and I look forward to the simple version of GraphQL +-API.

@selmeci
Copy link
Owner

selmeci commented May 21, 2020

Prisma is really cool project, but I'm not sure that this repository should provide all functions of ORM / ODM....

Prisma client uses pg dependency for communicate with DB, for example. This repository could provide same functionalities as pg in prisma for another ORM/ODM/... project. Maybe with combination of juniper.

What kind of simplification do you want @sessionboy?

@selmeci selmeci added the question Further information is requested label May 21, 2020
@selmeci selmeci self-assigned this May 21, 2020
@sessionboy
Copy link
Author

Yeah.I look forward to an API similar to prisma, which can reduce my work, for example: exist、findOne、findMany、findOneAndUpdate、update、upsert、delete etc.

@lhr0909
Copy link

lhr0909 commented Jun 3, 2020

@sessionboy We built an ORM that is agnostic to dGraph using TypeScript reflection - https://github.com/xanthous-tech/dgraph-orm . Based on the experience I have with this dgraph-tonic, I think right now this is the right level in terms of client, and maybe we could build something in Rust that does similar to our TypeScript implementation in Rust as a separate module. But with my level of Rust I don't know if I can make it work in any reasonable time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants