Comments (5)
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.
I would be possible to create the response and responses types based on the given examples (if they were provided).
from graphql-mesh.
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.
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.
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)
- Renamed input type field on graphql source is missing when using multiple sources
- Custom schema polling mechanism
- Batching for N+1 problem with objects HOT 1
- serve-cli: If uWebSockets is unable to be installed, use node:http
- Project Roadmap
- context missing in responseCache ifdef HOT 1
- Set headers from grpc source HOT 2
- Schema generation error for Swagger 2.0 default object value HOT 5
- Project Roadmap
- Project Roadmap
- Project Roadmap
- Project Roadmap
- Schema generation is non-deterministic
- Document `UWS_HTTP_MAX_HEADERS_SIZE`
- TLS configuration for “Redis Cache” HOT 1
- With encapsulate transform, it is not possible to point to the root types
- Fails on Abacus OData schema
- ODATA query parameters not url-encoded
- Disabling any resolver on a Mongoose model fails to generate the schema HOT 3
- Error: No `subscribe` function found! Register it using "useEngine" plugin. HOT 2
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 graphql-mesh.