GithubHelp home page GithubHelp logo

Comments (7)

MatheusR42 avatar MatheusR42 commented on May 11, 2024 1

@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.

maxnachlinger avatar maxnachlinger commented on May 11, 2024 1

@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.

maxnachlinger avatar maxnachlinger commented on May 11, 2024 1

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.

dylancwood avatar dylancwood commented on May 11, 2024

from json-to-simple-graphql-schema.

maxnachlinger avatar maxnachlinger commented on May 11, 2024

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.

MatheusR42 avatar MatheusR42 commented on May 11, 2024

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.

MatheusR42 avatar MatheusR42 commented on May 11, 2024

@maxnachlinger Thanks a lot!

from json-to-simple-graphql-schema.

Related Issues (11)

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.