cesarve77 / mandarina Goto Github PK
View Code? Open in Web Editor NEWfull-stack React+GraphQL+Prisma.io library
full-stack React+GraphQL+Prisma.io library
import {CreateForm} from 'mandarina' import '/app/lib/tables/Post' export default ()=> <CreatePostForm table={Post}/>
Is there a typo in the docs. Or that's the way it's suppose to be.
I was using it in this way <CreateForm table={Post}/>
.
Now there in as option name in Table and Schema.
Check what happens when are diferents
The mutation generated by <UpdateForm />
is inserting first: 50
in the input payload
{"operationName":"mutationFn","variables":{"where":{"id":"cjxcmchik00330791n4y3vvl3"},"first":50,"data":{"id":"cjxcmchik00330791n4y3vvl3","name":"Eduardo Zarraga M","email":"[email protected]","avatar":null}},"query":"mutation mutationFn($where: UserWhereUniqueInput!, $data: UserUpdateInput!) {\n updateUser(data: $data, where: $where) {\n id\n name\n email\n avatar\n __typename\n }\n}\n"}
If we remove table it stays in the prisma even though it is no longer in our yoga server. I think table should be deleted from prima as well.
if the id
is not added in the omitFields
prop of ` it will throw a bad request with the following error
Variable "$data" got invalid value { id: "cjxcmchik00330791n4y3vvl3", name: "Eduardo Zarraga", email: "[email protected]", avatar: null }; Field "id" is not defined by type UserUpdateInput
When a form action call a no existing action (or not registered)
there no error, conversely call a empty resolver
We need validate de object values against validators. values like minNumber, RegEx and rest.
We already have a validator in Schema, but the object received for the resolver will have properties like: 'create', 'update' and 'connect' coming from prisma semantic.
Or we do a new validator, which check the prisma semantic as well or we transform the object removing that properties and after check it with the existing validate function
default value in a schema prop { type: Boolean, defaultValue: false }
is always setting a fixed value for the uniform model.
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.