graphql-net icon indicating copy to clipboard operation
graphql-net copied to clipboard

[Feature Request] Schema File

Open Disturbing opened this issue 7 years ago • 1 comments

Hey There!

Kudos for creating the project, great implementation of GraphQL on .NET.

Is there a way to print out the Schema to see what all is available? Something similar to this:


type Query {
  human(id: ID!): Human
}

type Human {
  name: String
  appearsIn: [Episode]
  starships: [Starship]
}

enum Episode {
  NEWHOPE
  EMPIRE
  JEDI
}

type Starship {
  name: String
}

Disturbing avatar Nov 12 '17 09:11 Disturbing

Hey, afaik, this library does not provide a way to print out the schema directly.

However, it is possible to execute an introspection query to get the schema and let another tool print out the schema. (e.g. there is an IntellJ Plugin which provides something like this https://github.com/jimkyndemeyer/js-graphql-intellij-plugin - but I'm sure there more tools to do this.)

Notice that introspection is not fully support yet (see https://github.com/ckimes89/graphql-net/pull/83).

I hope this answers your question :)

Can we close this issue?

MarianPalkus avatar Dec 08 '17 18:12 MarianPalkus