question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add edgedb adapter

See original GitHub issue

Description 📓

Edgedb is an awesome graph database. It reached 1.0 not so long ago and it has a similar developer experience as prisma, with a type-safe query builder. It would be awesome to include an adapter for it. Here’s a link if you’re not familiar with it.

How to reproduce ☕️

export default function EdgedbAdapter(client, options = {}) {
  return {
    async createUser(user) {
      return client.querySingle(`insert User {
        name := <str>$name
        email := <str>$email
      }`, user)
    },
    // ...rest of the methods
  }
}

Contributing 🙌🏽

Yes, I am willing to help implement this feature in a PR

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:6
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
MartinCuracommented, Aug 21, 2022

@MartinCura I haven’t been able to find the time yet (It’s crazy at work right now), but I was thinking on taking a look at it this weekend. If you have the time, I would love the extra hand. I think the easiest way for me is to just copy whatever the prisma implementation is and just translate the queries to edgedb by accepting the raw client. What do you think?

Thought i would receive an email notification, so missed this until now. I had started doing a kind of EdgeDB adapter some months ago, i have to review it to see how far along it was. Starting from Prisma’s implementation sounds like a good idea!

1reaction
johnschultcommented, Oct 31, 2022

Hi @brielov I’m game for a PR. Maybe we can hit up someone at EdgeDB to see if they have any interest or ability to help as well. We should be able to get this done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building a GitHub OAuth application — Tutorials | EdgeDB Docs
There is a community-supported Elixir driver for EdgeDB. In this tutorial, we'll look at how you can create an application with authorization through...
Read more >
Quickstart — Get Started | EdgeDB Docs
This quickstart will walk you through the entire process of creating a simple EdgeDB-powered application: installation, defining your schema, adding some ...
Read more >
String Functions and Operators — Standard Library - EdgeDB
Some of the type converter functions take an extra argument specifying the formatting (either for converting to a str or ... B.C., b.c.,...
Read more >
How we converted our Node.js library to Deno (using Deno)
This way, we can make edgedb-js Deno-compatible by simply rewriting all imports of adapter.node.ts to adapter.deno.ts . As long as these files ...
Read more >
Insert — TypeScript / JS | EdgeDB Docs
const query = e.insert(e.Movie, { title: "Iron Man", actors: e.select(e.Person, person => ({ filter_single: {name: "Robert Downey Jr."}, "@character_name": ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found