apollographql / apollographql/apollo-tooling

Support for JSON schema codegen target

Open
#1,734 2 comments 0 reactions 0 assignees View on GitHub
:tada: feature 🤖 component - codegen
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

The [apollo client:codegen](https://github.com/apollographql/apollo-tooling#apollo-clientcodegen-output) command currently supports swift, typescript, flow and scala. It would be great if it could support outputting a json schema too.

We have a tool that can generate stub data which takes a json schema as an input. Right now we use the typescript output and then another tool to convert the typescript output to a json schema.

I think this would involve adding a new `apollo-codegen-json` package.

I'm happy to pick the work up on this, but was wondering if it is something that would be accepted first.

Contributor guide

Open the contributing guide

Research direction

Start with the apollo client:codegen command and compare its existing swift, typescript, flow, and scala targets. Determine how a new apollo-codegen-json package would fit and verify that the command can emit a JSON Schema accepted by the referenced stub-data tool.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.