Comments (7)
@marcosfede @dylancwood , I have the same idea in the first time that I used it, so I just implemented it here: https://matheusr42.github.io/json-to-graphql-schema-online/
Source code: https://github.com/MatheusR42/json-to-graphql-schema-online
from json-to-simple-graphql-schema.
@MatheusR42 nice! Mine is, well, too simple to need any framework :) It weighs in at 14.6K gzipped. http://maxnachlinger.js.org/json-to-simple-graphql-schema-ui/ I'm a bit paranoid about huge bundle sizes - and I've just added a PR which cuts the size of this library down a bit for front-end users. Boring source code for my version is here: https://github.com/maxnachlinger/json-to-simple-graphql-schema-ui
from json-to-simple-graphql-schema.
webpack polyfills util
- which is nice. More details are here: https://webpack.js.org/configuration/node#other-node-core-libraries
from json-to-simple-graphql-schema.
from json-to-simple-graphql-schema.
Going to close this issue since we now have at least 2 webapps. We'll link to both from the README.
from json-to-simple-graphql-schema.
Nice @maxnachlinger, much cleaner that my implementation! 🤣
I add a reference to your version in my readme.
I have a question. It's is more about the javascript architecture than the lib, but I think that you may help me.
When I was change the code to work inside the browser I basically install all the libs and change the "module.exports" to "export default" because that is the way that I see in most in React apps. But I have to change the "util.inspect" to "JSON.stringify" since "util" is not defined in browsers. But in json-to-simple-graphql-schema-ui I saw that you import the lib directly:
import { jsonToSchema } from "@walmartlabs/json-to-simple-graphql-schema/lib";
How does this work inside the browser? There is some config to use Nodejs modules in web?
Thanks!
from json-to-simple-graphql-schema.
@maxnachlinger Thanks a lot!
from json-to-simple-graphql-schema.
Related Issues (11)
- question: does node have to be set at 10+ HOT 3
- Arrays does not produce valid Schema HOT 6
- Large JSON file appears to have issue processing. HOT 1
- Invalid typeDefs created if json key contains string `type` at end of string HOT 3
- Change main type name of result HOT 3
- Adding an option "prefix" for Type object names HOT 2
- ability to assign custom data types for named fields HOT 1
- how can i use description for schema HOT 2
- Add gh pages to readme or so HOT 2
- some character that are not supported by graphql to be shown as any object HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-to-simple-graphql-schema.