Coder Social home page Coder Social logo

relay-redwood-app-example's Introduction

relay-redwood-app-example's People

Contributors

muhajirdev avatar orta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

relay-redwood-app-example's Issues

Question: What's a good way to have Object identification Id without saving the typename to database?

hey @orta awesome works

I see that in this repo you're saving cuid:typename into database. If a database is already using int autoincrement.
This won't work, because we cannot put string to an Int

I know we can base64 id:typename it in each mutation and resolver, before we give the id to prisma. But this would be very verbose. Is there a good way to

  • when the id arrive in mutation resolver. It's already in a Int format (not base64) so
  • when the id arrive in Query resolver. It's already in an Int format
  • when the id arrive in the client (relay) it's in base64 (id:typename)

One possible way is probably by writng an envelop plugin. I am going to explore envelop.dev. Just curious if you have any opinion about this problem

Another thing I am thinking is that maybe ID scalar can do serialiaze and deserialize.
in serialize we can encode it and in deserialize we can decode it. But not sure where I can read more about this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.