Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Generate SDL comments on top of nexus calls #33

Open
Weakky opened this issue Jan 23, 2019 · 1 comment
Open

Generate SDL comments on top of nexus calls #33

Weakky opened this issue Jan 23, 2019 · 1 comment
Labels
kind/feature status/on-hold This issue is on hold.

Comments

@Weakky
Copy link
Contributor

Weakky commented Jan 23, 2019

Description

nexus makes it sometimes hard to reason about the relations in your GraphQL schema. To fix that problem, we could generate comments on top of your objectType and prismaObjectType calls. eg:

objectType('Query', t => {
  t.string('hello')
})

Would result in the following generated comment:

/**
 * type Query {
 *   hello: String!
 * }
 */
prismaObjectType('Query', t => {
  t.string('hello')
})
@schickling
Copy link
Contributor

schickling commented Mar 20, 2019

An alternative could also be to have a VSCode plugin similar to Vetur. See demo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature status/on-hold This issue is on hold.
Projects
None yet
Development

No branches or pull requests

2 participants