GithubHelp home page GithubHelp logo

Comments (5)

ardatan avatar ardatan commented on June 11, 2024

GraphQL Mesh needs to know how requests and responses look like just like OpenAPI spec.
Since there is no clear specification for postman collections about the request and response schemas, I don't think this is going to work. Even if there are some parts of postman collection to define some schemas, they are not strict and commonly used.
So most of the people would expect GraphQL Mesh to generate a GraphQL schema magically even if there is no clue in the postman collection.
But instead, we recommend people to use OpenAPI handler instead after converting the postman collections to an OpenAPI document.

from graphql-mesh.

soerenuhrbach avatar soerenuhrbach commented on June 11, 2024

I would be possible to create the response and responses types based on the given examples (if they were provided).

from graphql-mesh.

soerenuhrbach avatar soerenuhrbach commented on June 11, 2024

I created a package that create the openapi schema with all response and request types when using it together with postman-to-openapi:

https://github.com/soerenuhrbach/openapi-schema-types-from-examples

from graphql-mesh.

soerenuhrbach avatar soerenuhrbach commented on June 11, 2024

Since I already have a working solution, I will just create a pull request and you can decide what to do with that.

from graphql-mesh.

ardatan avatar ardatan commented on June 11, 2024

GraphQL Mesh is already able to generate schemas from the examples but even still postman collections are not required to have examples or schemas. So we cannot use them directly as the source of a GraphQL Schema.

from graphql-mesh.

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.