cozemble / monorepo

A data and process canvas
https://cozemble.com
Apache License 2.0
13 stars 1 forks source link

Explore an auto-generated gql api that is informed by jsonschema #39

Open mike-hogan opened 1 year ago

mike-hogan commented 1 year ago

Assumptions:

Lets try!

samsoft00 commented 1 year ago

We need to consider several things when building auto-generated GQL API from JSONSchema.

  1. RootName:
  2. JSON Schema
  3. Required Fields
  4. Pattern
  5. AdditionalProperties
  6. Ref
  7. OneOf ~ Dog | Cat
  8. Interface
  9. Union
  10. if else

GraphQLSchema Types https://www.apollographql.com/docs/apollo-server/schema/schema/#union-and-interface-types

mike-hogan commented 1 year ago
mike-hogan commented 1 year ago

@samsoft00 I propose closing this issue mate. We're too far away from actually needing this for us to know what it should really look like. What do you think?