Coder Social home page Coder Social logo

Comments (6)

xinshangshangxin avatar xinshangshangxin commented on April 28, 2024

@wincent

from codemirror-graphql.

wincent avatar wincent commented on April 28, 2024

@xinshangshangxin: can you clarify the nature of this issue? I'm not sure if it is a question, a proposal or a bug report.

from codemirror-graphql.

xinshangshangxin avatar xinshangshangxin commented on April 28, 2024

it is a proposal. @wincent

When I write a query name, and no leaf nodes given, Then press cmd + enter, it will fill the leaf nodes before send, like the gif

graphiql

from codemirror-graphql.

asiandrummer avatar asiandrummer commented on April 28, 2024

@xinshangshangxin It's still not really clear why you'd like this feature in this library. Since codemirror-graphql is just a set of wrappers for GraphQL language service, it's probably not appropriate for this library to contain the logic to auto-filling leaf nodes - that feature handles a very specific use case. OTOH I do see how the autofill feature could reside in the language service repo. I'd be open for a PR for that if you're down for it please.

This code handles the auto-filling of leaf nodes.

from codemirror-graphql.

asiandrummer avatar asiandrummer commented on April 28, 2024

I'm closing this issue since I still believe that feature does not belong in this library. Let me know if you think otherwise - I'd like to understand the reasoning behind it.

from codemirror-graphql.

xinshangshangxin avatar xinshangshangxin commented on April 28, 2024

thanks @asiandrummer

from codemirror-graphql.

Related Issues (20)

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.