A mock GraphQL service
#idea #opensource #graphql
The idea is a simple Koa server that receives the schema.graphql in a body
applies the mocks to it, and return a given query
app.use(getSchemaFromBody())
app.use(graphql())
here is the demo
it takes a schema and a mock resolvers definitions, and generate a GraphQL operation result based on this
Links
Links to
- Open SourceOpen Source is when you share you code in the public to be consumed to somebody else My history with open source started when I was working in an android app to track sensors…
Shares tags with
- RelayI'm known in open source mostly by my Relay contributions I'm also know because of react-native contributions Relay is a data fetching that scales, it let you declare which data…
- Architecture of Open Source
- Core APIBuilding Block Core API of any package should be very tiny A tiny API is easier to reason about it A tiny API is easier to maintain A tiny API is easier to learn Add extensions…
- Page based pagination with ConnectionsThere are no public examples of doing paged based pagination with Connection in Relay Page based is a very common pattern in business apps, so it should be easy in Relay. Artsy…
- What people get wrong about RelayNode interface Connections Data components fragments vs queries where the data is stored (not in graphql operation, but in relay store) how to understand store
Sign in with GitHub to reply.
Select any passage to quote it.
Comments