Git Product home page Git Product logo

Comments (4)

klavs avatar klavs commented on August 18, 2024 1

@thosakwe, thanks for the info!

I'll add your packages to the users list in the readme.

from gql.

klavs avatar klavs commented on August 18, 2024

Hi @thosakwe,

I am aware of your work on graphql_parser and I've taken a tiny bit of inspiration from it. To be fair, I've noticed that it's docs are highly misleading as it is not compatible with the latest GraphQL spec and it is not implementing the Visitor Pattern (as suggested in readme file).

This project really started as my pet project to better understand GraphQL spec, but it unexpectedly grew into the most up-to-spec GraphQL parser for Dart ecosystem. So I had to share my work.

Due to it's current state and our different approaches in source parsing, I do not really see how my work can benefit your's other than to replace it as a major version update.

My goal is to make it easy to write tooling for GraphQL so my focus is on parsing, transformation and printing (validation coming up later). I am not interested in execution of GraphQL Documents.

If you are interested in taking your packages to the latest version of the GraphQL spec, consider using this parser. Feel free to contribute by filing issues and creating Pull Requests.

My current plan is to improve test coverage. After that is done, I'll publish 0.1.0 version.

from gql.

thosakwe avatar thosakwe commented on August 18, 2024

Ah, I see what you mean now. graphql_parser is not misleading in its docs (it is up to date with the June 2018 spec), it's just that it only parses queries - not the schema language (because it expects these to be defined in Dart). There's also no explicit mention of the visitor pattern, but the AST visiting logic was actually moved to graphql_server. So "misleading" isn't exactly the word I would use.

But I understand. Good luck with this project. No hard feelings.

from gql.

thosakwe avatar thosakwe commented on August 18, 2024

As of version 2.0.0-beta, both graphql_server and angel_graphql are using the package:gql parser. I intend to deprecate graphql_parser entirely.

https://pub.dev/packages/graphql_server/versions/2.0.0-beta

from gql.

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.