orta / relay-redwood-app-example Goto Github PK
View Code? Open in Web Editor NEWAn example of using Relay in Redwood
License: MIT License
An example of using Relay in Redwood
License: MIT License
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
id
arrive in mutation resolver. It's already in a Int
format (not base64) soid
arrive in Query resolver. It's already in an Int
formatid
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.